Skip to main content
Solved

Access to subscriptionPeriod on product.

  • February 17, 2022
  • 1 reply
  • 102 views

Forum|alt.badge.img

Hello,

As far as I can see there is a subscriptionPeriod property available on both Android and iOS, however I do not see anyway of accessing this through the React native SDK. Is this something that is available?

 

Thanks

Best answer by sundeep

Hi @Edward Armstrong, you could get the packageType of the product with the React Native SDK: https://github.com/RevenueCat/react-native-purchases/blob/main/src/offerings.ts#L207 (it corresponds to these values: https://github.com/RevenueCat/react-native-purchases/blob/main/src/offerings.ts#L2-L48)

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

sundeep
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 138 replies
  • Answer
  • February 19, 2022

Hi @Edward Armstrong, you could get the packageType of the product with the React Native SDK: https://github.com/RevenueCat/react-native-purchases/blob/main/src/offerings.ts#L207 (it corresponds to these values: https://github.com/RevenueCat/react-native-purchases/blob/main/src/offerings.ts#L2-L48)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings