isInstallApp method
是否安装某个app
Whether to install an app
Android str
对应包名
Android str
corresponds to the package name
Implementation
Future<bool> isInstallApp(String str) async {
if (isIOS || isMacOS) {
return await canLaunchUrl(Uri.parse(str));
} else if (isAndroid) {
return await Curiosity().native.hasInstallAppWithAndroid(str);
}
return false;
}