You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/package_info_plus/package_info_plus/README.md
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,16 @@ String version = packageInfo.version;
48
48
String buildNumber = packageInfo.buildNumber;
49
49
```
50
50
51
-
## Installer Store
51
+
###Installer Store
52
52
53
53
The `installerStore` property indicates which app store installed the application. This is useful for directing users to the appropriate store page for ratings or updates.
On iOS, the `installerStore` value is determined by checking the app store receipt path:
62
63
@@ -66,7 +67,7 @@ On iOS, the `installerStore` value is determined by checking the app store recei
66
67
| TestFlight |`com.apple.testflight`|
67
68
| Simulator |`com.apple.simulator`|
68
69
69
-
### Android
70
+
####Android
70
71
71
72
On Android, the value is the package name of the app store that installed the application, obtained via `PackageManager.getInstallSourceInfo()` (Android 11+) or `PackageManager.getInstallerPackageName()` (older versions).
72
73
@@ -83,13 +84,9 @@ On Android, the value is the package name of the app store that installed the ap
83
84
84
85
**Note:** Some stores may not properly implement the installer package name API, which could result in `null` being returned even for store installations.
85
86
86
-
### macOS
87
-
88
-
On macOS, `installerStore` always returns `null` as there is no reliable way to detect the installation source.
89
-
90
-
### Other Platforms
87
+
#### Other Platforms
91
88
92
-
On Linux, Windows, and Web, `installerStore` returns `null`.
89
+
On MacOS, Linux, Windows, and Web, `installerStore` returns `null`.
0 commit comments