In our app we fetch the storefront country code:
SKPaymentQueue.default().storefront?.countryCode
We were not sure if all users will have this property available and we track to Bugsnag when this is nil. It turned out that over 6k users don't have this property available (shortly after the release) the number is larger than we expected. Looks like it affects all iOS versions (87 iOS versions from iOS 13.x to iOS 17.x) and models (95 in our case).
It is not clear when and why this would be nil
. It is not related to internet availability or to the timing of calls (e.g. it happens shortly after the app starts or hours after the app was started).
So, when and why would the SKPaymentQueue.default().storefront be
nil`?
Thanks!