Expose priceLocale for iOS
See original GitHub issueUse case
We’re offering a monthly and annual auto-renewing subscriptions on our iOS app. We want to display a comparable monthly equivalent price for the annual subscription formatted for the specific App Store locale. As a device can have a different locale from App Store, we cannot rely on the device locale to format the currency price. We also cannot rely on the currency code, for example, the euro formatting varies based on your country.
Proposed solution for iOS
Expose SKProduct.priceLocale
string value as part of the getProducts
response as product.priceLocaleIOS
.
Android
From my brief look into how to solve this for Android, there does not appear to be the equivalent locale information on the Play Store product. We’re currently not targeting Android, but happy to make the change generic if anyone can point me in the right direction.
Would you like me to submit a PR?
Version of react-native-iap
2.3.19
Version of react-native
0.57.0
Platforms you faced the error (IOS or Android or both?)
iOS only.
Expected behavior
Able to further localise pricing information based
Actual behavior
Tested environment (Emulator? Real Device?)
Real device. iPad Air 2.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
@m-sanders Hi. Any
PR
is appreciated and we all love to see your work.any news on this?