Is it possible to find out which store my app was installed from? I have it available on Samsung store, Amazon and Google Play and I want to be able to determine which of these stores my app was installed from and prompt the user with a message like "Thank you for downloading the app from (store)..."
Asked
Active
Viewed 180 times
3
-
I'll give this a shot since I'm only supporting 4.0+ so hopefully this will be more reliable. – Ali Feb 19 '14 at 12:57
1 Answers
0
The method linked by FD_, sadly, is not reliable as the information it returns can be edited, and may be null in some cases.
The best way would be to have an enum, or some sort of flag in your application, and flipping that flag before building a new release for each store. Simply check the status of that flag at runtime, to determine which store the apk came from.
Raghav Sood
- 80,914
- 21
- 183
- 190
-
Thanks but that is exactly what I'm trying to avoid having to do. I can one up that and just have ant set the flags and do the different builds for me but i want too avoid having different builds. – Ali Feb 19 '14 at 12:54
-
@Ali Unfortunately, there is no reliable way to get around this problem. – Raghav Sood Feb 19 '14 at 12:55