Solved

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

  • 15 February 2022
  • 3 replies
  • 1176 views

Badge +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

icon

Best answer by Andy 16 February 2022, 16:18

View original

3 replies

Userlevel 5
Badge +8

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… 

Badge +1

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

Userlevel 5
Badge +8

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

Here are the docs for it

Hope this helps!

Reply