openPlatformApp method
Opens a platform-specific app.
On Android, opens the app specified by androidAppId (package name).
On iOS, opens the app specified by iosAppId (bundle identifier).
You can pass a GoogleApp enum for common Android apps, an AppleApp enum for common iOS apps, or a custom app ID string.
Example with enums:
await $.native.openPlatformApp(
androidAppId: GoogleApp.chrome,
iosAppId: AppleApp.safari,
);
Example with custom app IDs:
await $.native.openPlatformApp(
androidAppId: 'com.mycompany.myapp',
iosAppId: 'com.mycompany.myapp',
);
Implementation
Future<void> openPlatformApp({Object? androidAppId, Object? iosAppId}) =>
_platform.mobile.openPlatformApp(
androidAppId: androidAppId,
iosAppId: iosAppId,
);