1

在我们的应用中,我们需要检测用户应用商店所在的国家/地区。

我们正在这样做:

在 iOS 13+上https://developer.apple.com/documentation/storekit/skstorefront/3182435-countrycode 在 iOS < 13 上https://developer.apple.com/documentation/storekit/skproduct/1506145-pricelocale

我对这两个属性有几个问题:

  • 是否存在从这两个属性返回的国家/地区代码不同的情况?
  • 有时 SKStoreFront.countryCode 返回 nil,为什么会这样?
  • 如果 SKStoreFront.countryCode 返回 nil,使用 priceLocale 作为后备是否安全?还是这也为零?

谢谢

4

0 回答 0