getInstallerInfo function
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
Implementation
Future<InstallerInfo?> getInstallerInfo() async {
final installerName = await _channel.invokeMethod('getInstallerInfo');
if (installerName == null) return null;
final installer = _installerNames[installerName];
return InstallerInfo(installerName, installer);
}