Skip to main content
Solved

Can I check if the user is currently in the free-trial stage?

  • 15 February 2022
  • 3 replies
  • 1733 views

Forum|alt.badge.img+1

Is it possible to check on the client-side if a user has an active free-trial?

Under the settings page in our app, we want to display a button that says ‘Cancel free trial’ that helps the user with their subscription management.

I would like to only display this button to users who have an active free-trial, not to regular users or paying users who are not in the free-trial stage.

Is there a RevenueCat option that I am missing? Or would I have to hack something together to make this work?

Thanks <3

Best answer by Andy

Happy to help! In flutter, the property is called `periodType`, on the class `EntitlementInfo`. 

Here are the docs for it

Hope this helps!

View original
Did this post help you find an answer to your question?

3 replies

Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 237 replies
  • February 15, 2022

Hi @Thorge,

 

Yes, you can! 😃

There’s a property in EntitlementInfo called periodType, which has values for “normal”, i.e.: just normal subscription, “intro”, for special introductory pricing, and “trial” for free trials. 

 

I can point you to more specific docs depending on the platform! Which platform is this for? i.e.: iOS, Android, Flutter, React-Native, Cordova, Unity… 


Forum|alt.badge.img+1
  • Author
  • New Member
  • 1 reply
  • February 15, 2022

Thanks @Andy , very helpful! We are using Flutter.


Andy
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 237 replies
  • Answer
  • February 16, 2022

Happy to help! In flutter, the property is called `periodType`, on the class `EntitlementInfo`. 

Here are the docs for it

Hope this helps!


Reply


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