apache / apache/cordova-plugin-inappbrowser

When In app browser is shown, base Cordova Webview does not honour page visibility

Open
#302 1 comment 0 reactions 0 assignees View on GitHub
bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.