Open ukeOnFire opened 5 years ago
Use a try-catch block:
try{
print(await AppAvailability.checkAvailability(Platform.isIOS ? "youtube://" : "com.google.android.youtube"));
AppAvailability.launchApp(Platform.isIOS ? "youtube://" : "com.google.android.youtube").then((_)
{
print("App launched!");
}).catchError((err) {
Scaffold.of(context).showSnackBar(SnackBar(
content: Text("App not found!")
));
print(err);
});
}
catch(ex)
{
print(ex);
Scaffold.of(context).showSnackBar(SnackBar(
content: Text("App not found!")
));
}
hi @pichillilorenzo I have just started to make an app iOS compatible and it seems that what has worked fine on Android is causing problems on iOS.
I tried to check the app 'calshow://', here's the exception for one of the calls:
Thanks for your work, it's amazingly smooth on Android!