Skip to content

Call onPause when preloading allowing PageVisibility API to return th… #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 31, 2024

Conversation

kiftio
Copy link
Contributor

@kiftio kiftio commented May 29, 2024

…e correct value

What are you trying to accomplish?

See the issue here for more details on how PageVisbility API and WebViews work together.

https://partnerissuetracker.corp.google.com/issues/40446497

Specifically So now, if an app wants to toggle blink page visibility, it has to call WebView#onPause/onResume. The visibility of the window that the WebView is attached to is not under control of the app.

https://developer.android.com/reference/android/webkit/WebView#onPause()

page-vis.mp4

Before you deploy

@kiftio kiftio requested a review from a team as a code owner May 29, 2024 20:43
@kiftio kiftio merged commit db0c30c into main May 31, 2024
4 checks passed
@kiftio kiftio deleted the dk/pause-resume branch May 31, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants