Question

Offerings in unavailable regions

  • 7 September 2023
  • 1 reply
  • 59 views

Badge

Hi,

When I set the availability of my Subscription to 1 country, can I assume that this:

try await Purchases.shared.offerings().current?.availablePackages

will return an empty array/error with other storefronts?

Cannot really test it via TestFlight, as it seems to discard the region completely.


1 reply

Userlevel 4
Badge +6

Hi @blaze,

That’s correct, the offerings fetch will only show products that are available in the country that the store recognizes them as being in. 

I’m not certain about TestFlight specifically, but you should be able to test localizations in sandbox by setting your sandbox user's App Store Country or Region property to the territory you'd like to test.

Reply