app_launcher 1.0.0 icon indicating copy to clipboard operation
app_launcher: ^1.0.0 copied to clipboard

PlatformAndroid

A flutter plugin that launches an Android or iOS installed on the device using the application ID.

app_launcher #

Pub License

A flutter plugin that launches an Android or iOS installed on the device using the application ID.

NOTICE

Supports only Android as of now. PRs for iOS support will be very appreciated.

Usage #

Simply call the openApp static method and pass in your application ID as a String:

RaisedButton(
  onPressed: () async {
    await AppLauncher.openApp(
      androidApplicationId: "com.whatsapp",
    );
  },
  child: Text('Open WhatsApp'),
),

If app is not installed, it'll attempt to open the app details on Google Play.

You can also check if the app is installed on the device.

final bool isInstalled = await AppLauncher.openApp(
  androidApplicationId: "com.whatsapp",
);

isInstalled will be true if found and false otherwise.

Note: the androidApplicationId must neither be empty nor null.

TODO #

  • Android Support.
  • Open Google Play when app not found.
  • iOS Support.
  • Open AppStore when app not found.
  • Support passing arguments.

Example #

Check the examples tab or take a look at the example file.

Contribution #

This project is fully open-source. Feel free to open issues when you realize one and PRs are welcome as well.

License #

This project has been licensed under the MIT License. Check the LICENSE file for the details.

22
likes
140
pub points
86%
popularity

Publisher

verified publisher iconakora-ingdkb.me

A flutter plugin that launches an Android or iOS installed on the device using the application ID.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on app_launcher