canLaunchApp static method
method that checks is provided appication is or not,
androidPackageName
applicationId for android,
iOSUrlScheme
urlScheme for iOS,
return bool
boolean status
Implementation
static Future<bool?> canLaunchApp(
{String androidPackageName = "", String iOSUrlScheme = ""}) async {
final appIdentifier =
Platform.isAndroid ? androidPackageName : iOSUrlScheme;
return await _channel
.invokeMethod(CAN_LAUNCH_APP, {"appIdentifier": appIdentifier});
}