isUaePassAppInstalled method
Returns whether the native UAE Pass app is installed on this device.
On Android this checks package visibility for androidPackageId
(requires the corresponding <queries> manifest entry). On iOS this
checks canOpenURL: for $iosUrlScheme:// (requires the
corresponding LSApplicationQueriesSchemes Info.plist entry). On
web, this always returns false — there is no native app to detect.
Implementation
@override
Future<bool> isUaePassAppInstalled({
required String androidPackageId,
required String iosUrlScheme,
}) async {
final installed = await methodChannel.invokeMethod<bool>(
'isUaePassAppInstalled',
{'androidPackageId': androidPackageId, 'iosUrlScheme': iosUrlScheme},
);
return installed ?? false;
}