Skip to content
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

Support Termination Handling API #740

Open
takenorim opened this issue Mar 5, 2024 · 3 comments
Open

Support Termination Handling API #740

takenorim opened this issue Mar 5, 2024 · 3 comments

Comments

@takenorim
Copy link

Is your feature request related to a problem? Please describe.
For some reason (e.g. prevent memory usage), app developers may want to terminate WebView(s) intentionally if it becomes unresponsive for a while. So, the main application may want to run WebViewRenderProcess#terminate() towards such webViews (including webView created by Prebid SDK).

Describe the solution you'd like
I think this requires all WebViews (created by main app and all other SDKs) to implement WebViewClient.onRenderProcessGone method. So, Prebid SDK also should implement the onRenderProcessGone public method maybe at the AdWebViewClient class.

Additional context
I'm assuming the GAM original API integration, but it may be the same thing for all other integration type as well.

@shinwan2
Copy link
Contributor

shinwan2 commented Mar 8, 2024

I'd like to suggest to also update OM SDK that's used by Prebid to at least 1.4.7.
From their changelog.

1.4.7 - 2023-07-07
Gracefully manage WebView render process crash.

@justadreamer
Copy link

This is Android specific and would not concern Original API, because in that case the Primary Ad SDK owns the WebViews (usually GMA SDK).

In the case of Rendering API - Prebid SDK manages its WebViews (this is also the case of the mediation adapters use s.a. AppLovin, AdMob etc.) Is the request for the SDK to implement this event handler for the WebViews it owns and expose a callback interface for the app developer - so they can take action?

@jsligh
Copy link
Collaborator

jsligh commented Jun 3, 2024

@takenorim is this any update on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

4 participants