Skip to content

AppNation/flutter_install_app_plugin

 
 

Repository files navigation

flutter_install_app_plugin

A Flutter plug-in helps to install iOS and Android apps.

Usage

It is not uncommon that you may want to ask a user to install another app within your app. What you need to do here is to prepare a set of iOS app ID on App Store, and Android package name.

For example, if you want to lead your customers to install KKBOX, you need to create an app set like:

var app = AppSet()
..iosAppId = 300915900
..androidPackageName = 'com.skysoft.kkbox.android';

Then call the plug-in.

FlutterInstallAppPlugin.installApp(app);

On iOS, the plug-in calls SKStoreProductViewController, while it creates an activity to open a URL with "market://" prefix on Android.

Additional Parameters for iOS

On iOS, you can use additional parameters including:

That's all. Enjoy!

About

A Flutter plug-in helps to install iOS and Android apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 32.0%
  • Swift 21.2%
  • Ruby 20.8%
  • Kotlin 17.8%
  • HTML 5.4%
  • Objective-C 2.8%