apache / apache/cordova-plugin-inappbrowser
IAB.close() called but it was already closed
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
I am running an Ionic v1 app. Before my app code `$ionicPlatform.ready(function() ...)` even fires I get four of the above IAB.close() messages in the Xcode console. In my `ready()` code is where I initialize the first check for InAppBrowser. Because the messages are firing before my app is even ready, I have no idea where to look to see whats causing this - my guess is its happening in the plugin initialization.
Its been plaguing my app for a long time and would love to know how to fix it or whats causing it to try close() something when the app is initializing.
Contributor guide
Research direction
Start by tracing InAppBrowser plugin initialization and close calls on iOS before the Ionic $ionicPlatform.ready entry point runs. Reproduce the startup sequence and identify why IAB.close() is called on an already-closed browser; done means the cause is documented and the startup messages no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, objective-c
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100