Question: I'd like to be able to determine which store the user connects to from inside my app, so that I can direct them to some appropriate content for their device AND store. Does anyone know how to get this information?

Basically, if the user is in the UK, and connects to the UK store, I want my function/method to return GB, if in Korea, I want KR, Australia = AU etc. Any help would be appreciated.

Answer: 
Since iOS 13.0, Apple introduced the [SKStorefront](https://developer.apple.com/documentation/storekit/skstorefront) API.

It allows you to check the current AppStore country the user is connected to.

> 
> **SKStorefront**: An object containing the location and unique identifier of an Apple App Store storefront.
> 
> 
> ### Overview
> 
> 
> In-app products you create through App Store Connect are available for sale in every region with an App Store. You can use the storefront information to determine the customer's region, and offer in-app products suitable for that region. You must maintain your own list of product identifiers and the storefronts in which you want to make them available.
> 
> 
> ### Topics
> 
> 
> * **countryCode**: The three-letter code representing the country associated with the App Store storefront.
> * **identifier**: A value defined by Apple that uniquely identifies an App Store storefront.
> 
> 
> 

<https://developer.apple.com/documentation/storekit/skstorefront>
I need the same functionality. At the moment I'm considering reading using data from NSLocale as default, but adding a setting in settings.app for user to customise this if it does not match.

This function is taken from [an answer to another question of mine](https://stackoverflow.com/questions/2639684/itunes-music-store-link-maker-how-to-search-from-within-my-app/2668190#2668190).

```
- (NSString *)getUserCountry
{
    NSLocale *locale = [NSLocale currentLocale];
    return [locale objectForKey: NSLocaleCountryCode];
}

```