-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: qualityA truly polished experienceA truly polished experiencec: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specifically
Description
Use case
According to the Android documentation there is a chance for a call to startActivity() can throw a ActivityNotFoundException.
Currently the launch function doesn't handle this exception.
Proposal
My proposal is to add an extra LaunchStatus to the Android launch function that is returned if the ActivityNotFoundException exception occurs.
Using this the new state can be handled in the onLaunch handler and a new error state can be returned.
Using ftp://localhost should cause the exception in an emulator.
Metadata
Metadata
Assignees
Labels
a: qualityA truly polished experienceA truly polished experiencec: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specifically