I haven't found a thread about this so I must ask: is there a way to programmatically detect which app store the app was downloaded from? (ie: Germany App Store)
I don't want to have to ask for location privileges to detect user location but if there isn't a way to detect the app store then I may have to.
On your Android phone, open the Google Play store app and tap the menu button (three lines). In the menu, tap My apps & games to see a list of apps currently installed on your device. Tap All to see a list of all apps you've downloaded on any device using your Google account.
Finding developers People can search for developers directly on the App Store. Tapping a developer's name within search results leads to the developer's page, which highlights their latest release above their entire collection of apps and games.
If you have In App Purchases you can check the priceLocale of your SKProduct
, which gives you the store (currency and country) the user currently is logged in.
Apple recommended this at WWDC2014 Session 303 Optimizing In-App Purchases at 10:30.
I think you'd use the current locale of the user to detect in which country they are… but it could fail sometimes, so I'm not very sure if a not 100% effective way to detect the AppStore would work for you.
You'd need to call
[[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]
Also, please see discussions in the following threads, some of them are old, but probably will help you to find alternatives solutions too Link1 and Link2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With