Regions & Storefronts
How OnsideKit resolves the user's region and storefront before and after login, and how that affects product availability and pricing.
How the region is resolved
When logged in
When logged out
extension AppDelegate: OnsideDelegate {
func onsideDefaultCountryCodeAssumption() -> String? {
// An ISO 3166-1 alpha-2 code, e.g. "US", "DE", "GB".
return userKnownRegion // or nil to fall back to the device region
}
}The storefront
Best practice: fetch before login, then re-fetch
Purchase protection on region change
Last updated
Was this helpful?