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

Consider that browsers might not be supported by devices #2070

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luckyhandler
Copy link

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.

///{@template flutter_inappwebview_platform_interface.PlatformChromeSafariBrowser.onBrowserNotSupported}
/// Called when the browser is not supported.
/// This can happen if a user forces a certain browser package to be used but the browser is not installed on the user's system.
void onBrowserNotSupported() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess there needs to be an {@endtemplate} here?

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

Successfully merging this pull request may close these issues.

3 participants