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

Report render process crashes to Crashlytics (plugin hook will be available in Cordova Android 12) #801

Open
peitschie opened this issue Apr 24, 2023 · 0 comments
Labels
android Relates to Android platform feature request New feature request

Comments

@peitschie
Copy link

Feature request

Hi!

I recently helped merge a plugin hook into cordova-android that allows a plugin to listen for the WebViewClient.onRenderProcessGone in order to be informed when the chrome renderer has been terminated or crashes on Android: apache/cordova-android#1574

This information could be useful to log to Crashlytics, to provide more context to a reported crash.

Implementation is fairly straightforward. In Cordova Android 12, a new method is available: boolean onRenderProcessGone(final WebView view, RenderProcessGoneDetail detail). This plugin could override this hook, and log the resulting detail to Crashlytics.

Reference for RenderProcessGoneDetail

To exercise the chrome render crash behaviour, the easiest way is to use Chrome Debugger, and execute a command like this: navigator.app.loadUrl("chrome://crash")

Chrome has a bunch of built-in crash types that can be seen by hitting chrome://about/.

@dpa99c dpa99c added feature request New feature request android Relates to Android platform labels Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Relates to Android platform feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants