Skip to main content

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

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… 


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


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

Here are the docs for it

Hope this helps!


Reply