-
-
Notifications
You must be signed in to change notification settings - Fork 684
Open
Labels
❓ questionFurther information is requestedFurther information is requested👣 waiting for responseNeed feedback to continueNeed feedback to continue📖 documentationImprovements or additions to documentationImprovements or additions to documentation📱 iOSRelated to iOSRelated to iOS
Description
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
Labels
❓ questionFurther information is requestedFurther information is requested👣 waiting for responseNeed feedback to continueNeed feedback to continue📖 documentationImprovements or additions to documentationImprovements or additions to documentation📱 iOSRelated to iOSRelated to iOS