-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: package_infoThe PackageInfo pluginThe PackageInfo pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
This is a feature request for package_info plugin to return installer info in the PackageInfo structure.
For Android it is returned from PackageManager.getInstallerPackageName
PackageManager pm = applicationContext.getPackageManager();
String installerPackage = pm.getInstallerPackageName(applicationContext.getPackageName());
map.put("installer", installerPackage);
For iOS it is either Apple store or TestFlight
NSString *appStoreReceipt = [[[NSBundle mainBundle] appStoreReceiptURL] path];
...
@"installer" : [appStoreReceipt containsString:@"CoreSimulator"] ? @"com.apple.simulator"
: [appStoreReceipt containsString:@"sandboxReceipt"] ? @"com.apple.testflight" : @"com.apple"
caiopo
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: package_infoThe PackageInfo pluginThe PackageInfo pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.