pichillilorenzo / flutter_inappwebview

A Flutter plugin that allows you to add an inline webview, to use a headless webview, and to open an in-app browser window.
https://inappwebview.dev
Apache License 2.0
3.01k stars 1.33k forks source link

Consider that browsers might not be supported by devices #2070

Open luckyhandler opened 1 month ago

luckyhandler commented 1 month ago

Try catch ClassNotFoundException exceptions when opening activity for intent

Resolve issue #2055

Testing and Review Notes

The problem it solves is a crash on devices without Chrome when explicitly calling the ChromeSafari with the chrome package on Android. I would like to be able to show the users at least a dialog that the browser they are using is not supported and that they should make sure to install Chrome.

Consider this as draft as I was not able to test it. The project relies on old dependencies (flutter_inappwebview_platform_interface 1.0.10 instead of 1.0.11) so this is untested and also not clear if I miss places that need to be considered.