Programmatically detect which app store the app was downloaded from

后端 未结 3 2108
星月不相逢
星月不相逢 2020-12-29 11:28

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

3条回答
  •  无人及你
    2020-12-29 12:10

    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.

提交回复
热议问题