openAndroidAppMarket function
android packageName,安装多个应用商店时会弹窗选择, marketPackageName 指定打开应用市场的包名
Implementation
Future<bool> openAndroidAppMarket(String packageName,
{String? marketPackageName}) async {
if (!isAndroid) return false;
final bool? data = await curiosityChannel.invokeMethod<bool>(
'openAppMarket', <String, String>{
'packageName': packageName,
'marketPackageName': marketPackageName ?? ''
});
return data ?? false;
}