Gets the country code for the storefront associated with a user's iTunes account.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- Store
Kit
Declaration
Parameters
completionHandler
A block that is called when the storefront country code is returned. The block takes the following parameters:
- storefrontCountryCode
The country code of a specific storefront.
- error
An error value that indicates the reason for failure. See
SKError
for possible error values.Code
Discussion
You need to get the appropriate storefront country code before you specify a product as each country contains different products.