flutter_install_app_plugin: ^0.4.2 copied to clipboard
A Flutter plug-in helps to install other iOS and Android apps on AppStore, Google Play or other stores.
A Flutter plug-in helps to install iOS and Android apps.
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.
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:
iosIapId: Represents the product identifier for the promoted product you want the store to display at the top of the page. See SKStoreProductParameterProductIdentifier.
iosAffiliateToken: Your affiliate identifier. You receive an affiliate identifier when you sign up for Apple's Affiliate Program. See SKStoreProductParameterAffiliateToken.
iosCampaignToken: Represents an App Analytics campaign. This token allows you to track the effectiveness of your Affiliate Program link and your App Analytics campaign. See SKStoreProductParameterCampaignToken.
iosAdvertisingPartnerToken: Represents the advertising partner you wish to use. See SKStoreProductParameterAdvertisingPartnerToken
iosProviderToken: Represents the provider token for the developer that created the app. See SKStoreProductParameterProviderToken.
That's all. Enjoy!