nativescript-community / nativescript-community/ui-webview
Possible issue with (de-)allocation of webview instances on iOS
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 22
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I am using the webview to display content of a web page on a local web server. I manage with the iOS webview that the server is no longer accessible when I navigate to the webview and back again several times. Something seems to be wrong with the garbage collection there. The app is flooding a queue on the webserver, unfortunately I cannot debug the webserver further.
With Android, the problem does not happen.
If I use the default NativeScript webview on iOS instead, it works without flooding the webserver's connection queue.
I have commented out various elements of the code, such as everything from initNativeView / disposeNativeView in index.ios.js, but that doesn't help and does not gain any further information...
I am sorry that I can't provide more details.
Which platform(s) does your issue occur on?
- iOS only
- arbitrary iOS versions >= 15
- arbitrary iPhones
Please, provide the following version numbers that your issue occurs with:
"@angular/core": "v13-lts",
"@nativescript/angular": "13.0.4",
"@nativescript/core": "8.5.3",
"@nativescript-community/ui-webview": "1.4.6",
"@nativescript/ios": "8.5.1",
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with index.ios.js and the iOS webview lifecycle, reproducing repeated navigation with the listed package versions. Compare the custom webview with NativeScript's default iOS webview and observe server connection-queue growth; done requires a reproducible cause and verified instance cleanup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, ios, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100