Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set is_testflight and is_sideloaded property #117

Open
4 tasks
marandaneto opened this issue Mar 14, 2024 · 2 comments
Open
4 tasks

Set is_testflight and is_sideloaded property #117

marandaneto opened this issue Mar 14, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed Product Analytics

Comments

@marandaneto
Copy link
Member

Description

Relates to PostHog/posthog-android#113
Sets a property if the running version was installed via testflight or its sideloaded.

  • iOS
  • Android
  • RN
  • Flutter will get it for free once Android and iOS are updated
@marandaneto marandaneto added the enhancement New feature or request label Mar 14, 2024
@marandaneto
Copy link
Member Author

marandaneto commented Mar 14, 2024

@marandaneto marandaneto added the help wanted Extra attention is needed label Mar 14, 2024
@marandaneto
Copy link
Member Author

marandaneto commented Mar 14, 2024

On Android, you can check packageManager.getInstallerPackageName(packageName), its null if its side loaded, or its the name of the installer (store).
Its not possible to know at runtime if the Android app is installed for internal testing only since its the same binary.
Here is the list of installer names https://github.com/ravitejaavv/store_checker/blob/feca50e3168763828e7aa024bb0b3c40b9ce42ab/lib/store_checker.dart#L31-L69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed Product Analytics
Projects
None yet
Development

No branches or pull requests

1 participant