volskaya / flutter-installer-info

Installer information for Flutter apps

Home Page:https://pub.dev/packages/installer_info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

installer_info

Pub Version

Returns information about the method used to install your app.

On Android API 29 and below, uses Context.getInstallerPackageName()

On Android API 30 and above, uses PackageManager.getInstallSourceInfo()

On iOS, parses Bundle.main.appStoreReceiptURL

Installing

Add to your pubspec.yaml

dependencies:
  installer_info: <version>

Example

final installerInfo = await getInstallerInfo();

print(installerInfo.installerName);
// com.android.vending

print(installerInfo.installer);
// Installer.googlePlay

About

Installer information for Flutter apps

https://pub.dev/packages/installer_info

License:MIT License


Languages

Language:Dart 40.8%Language:Ruby 20.4%Language:Kotlin 18.5%Language:Swift 13.6%Language:Objective-C 6.7%