apache / apache/cordova-plugin-inappbrowser
When In app browser is shown, base Cordova Webview does not honour page visibility
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
The Page Visibility API allows an app to know whether a page is currently being displayed to a user or not.
It seems that the typical in app browser use case does not honour this.
For example, if a Cordova app shows an in app browser to allow a user to login, the base Cordova web view should report that it is _not_ visible.
The current (IMO incorrect behaviour) is for the page visibility API to return visible for the Cordova web view when the IAB is shown, rendering the page visibility API as useless in Cordova 😞
Contributor guide
Research direction
No file or test is named. Start by reproducing the Page Visibility API behavior in a Cordova app while the InAppBrowser is shown, then inspect the plugin's platform-specific entry points; done means the base webview reports hidden while the InAppBrowser is open and visible again after it closes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript, objective-c
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100