installer_info 0.6.0 installer_info: ^0.6.0 copied to clipboard
Returns information about the method used to install your app.
installer_info #
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