react-native-purchases: introPrice.periodNumberOfUnits is returning 7 on iOS

Hi there. At some point in mid April it looks like we started sometimes getting a value of 7 under introPrice.periodNumberOfUnits on our current product when calling getOfferings on iOS. This product in app store has a 1 week free trial. Sometimes it is still 1 but randomly switches to 7. Since Apple only offer a distinct set of options for introductory offers, none of which should have periodNumberOfUnits as 7, we are slightly confused as to how this can be happening. We have checked everything on our side and we are definitely not fiddling with this value or hardcoding any values, we just display whatever number is returned under that value, and we also send it to Segment in some of our tracking. The issue also doesn’t correlate with a particular app release on our side but is instead affecting all versions. The issue is quite concerning as it means that sometimes our users are incorrectly seeing that they have a 7-week free trial advertised in the app.

  1. Environment
    1. Platform: iOS
    2. SDK version: 4.5.2 (react-native-purchases)
    3. OS version: multiple
    4. Xcode/Android Studio version:
    5. React Native version: 0.68.0
    6. SDK installation (CocoaPods + version or manual): cocoapods
    7. How widespread is the issue. Percentage of devices affected: From data it looks like in about 20% of cases we are getting a 7 instead of a 1 when fetching this value.

Thanks in advance for your help, Lydia

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

@vegaro @LydGol90 I just merged purchases-ios PR #1591 which addresses this issue from StoreKit! This should resolve the issue once it gets released in the next version of purchases-ios and adopted in a future version react-native-purchases.