Skip to content

Issue: No clear way to check if user is currently in trial period (IOS) #2984

@shahrukh25795

Description

@shahrukh25795

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description

When fetching subscription products, I can see trial information in the product metadata (e.g. introductoryPrice, introductoryPriceNumberOfPeriodsIOS, etc.). Example:

{
  "countryCode": "USA",
  "currency": "USD",
  "introductoryPrice": "$0.00",
  "introductoryPriceAsAmountIOS": "0",
  "introductoryPriceNumberOfPeriodsIOS": "7",
  "introductoryPricePaymentModeIOS": "FREETRIAL",
  "introductoryPriceSubscriptionPeriodIOS": "DAY",
  "localizedPrice": "$599.00",
  "platform": "ios",
  "price": "599",
  "productId": "my_product_id",
  "subscriptionPeriodNumberIOS": "1",
  "subscriptionPeriodUnitIOS": "YEAR",
  "title": "Yearly Access",
  "type": "subs"
}

This tells me that the product offers a 7-day trial. However, I don’t see a way to check if the user is actually in their trial period right now after they subscribe.

Expected Behavior

I should be able to determine if a user’s active subscription is currently in a trial or has moved into the paid phase.

Actual behavior

The library only exposes the product trial configuration, not whether the active user subscription is in trial or not.

Environment:

  • react-native-iap: "12.16.0"
  • react-native: "0.68.2"
  • Platforms: "IOS"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions