Application plugin which provides utility functions for Android and iOS.
No additional setup is required.
In Ios, for opening the target app from your app, you need to provide the URL scheme of the target app.
To know more about URLScheme in iOS, please visit below link.
In your deployment target is greater than or equal to 9 then also need to update another app information in your Info.plist.
<key>LSApplicationQueriesSchemes</key> <array> <string>whatsapp</string> // url scheme </array>
List of supported functions
- launchApp (Android and iOS) :
It opens target application from provided package name in Android and URLScheme in iOS.
- getInstalledApps (Android) :
It returns a list of the installed applications from your devices.
- canLaunchApp (Android & iOS) :
It checks application is launchable or not.
- getCurrentDeviceInfo (Android and iOS) :
It returns current device information.
- getCurrentAppInfo (Android and iOS) :
It returns your application information.
- readLaunchedData (Android and iOS) :
It allows us to read sender application data. In android, it reads data from activity intent but in iOS, it reads data from URL Scheme.
- openDeviceSettings : Open device settings application.
Bugs or Requests
If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull request are also welcome.