[url_launcher] Add canLaunch fallback for web on Android#5399
Conversation
If `canLaunch` returns false for a web URL on Android, re-queries with a generic URL, since this can happen if there is a custom handler for the queried URL (e.g,. YouTube or Google Maps urls), but the plugin client application doesn't have permission to see that application. Fixes flutter/flutter#93765
Since the I'll go ahead and re-sync the Android example with the main example's structural changes as part of this PR though. |
I didn't change that here since the example already |
[url_launcher] Add canLaunch fallback for web on Android
If
canLaunchreturns false for a web URL on Android, re-queries with ageneric URL, since this can happen if there is a custom handler for the
queried URL (e.g,. YouTube or Google Maps urls), but the plugin client
application doesn't have permission to see that application.
Fixes flutter/flutter#93765
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).