purchases-android icon indicating copy to clipboard operation
purchases-android copied to clipboard

Trial Period of a product

Open mohsin-ali-brainx opened this issue 2 years ago • 6 comments

We've upgraded my RevenueCat dependency from 5.4.0 to 6.4.0 as we've got the warning for using deprecated version of Google Billing library. After upgrading we've notice major changes in the code and I missing functionality of trial period data as in 5.4.0 we were able to get the data using "getProduct().getFreeTrialPeriod()" but not there is not such method available and no alternative as well or I'm unable to find one. If you could add this back or help us out how to get trial period data of each product of current offering. Thanks

mohsin-ali-brainx avatar Jun 06 '23 10:06 mohsin-ali-brainx

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Jun 06 '23 10:06 RCGitBot

Also if we do getProduct().getSubscriptionOptions().getFreeTrial() we get null though we have product having a trial period of 7 days and is added correctly on Google Play console under subscription.

mohsin-ali-brainx avatar Jun 06 '23 10:06 mohsin-ali-brainx

In the new Android SDK, you can view available offers by checking the subscriptionOptions property on a StoreProduct: https://www.revenuecat.com/docs/subscription-offers#more-control-over-offer-selection. The free trial property should include the data you're expecting to find.

HaleyRevcat avatar Jun 08 '23 16:06 HaleyRevcat

@HaleyRevcat I've already checked this property but this is returning null everytime even though trial offer is attached to the subscription in Google play console.

mohsin-ali-brainx avatar Jun 09 '23 06:06 mohsin-ali-brainx

@mohsin-ali-brainx did you finally find the issue ?

AlexNsbmr avatar Oct 23 '23 13:10 AlexNsbmr

Also if we do getProduct().getSubscriptionOptions().getFreeTrial() we get null though we have product having a trial period of 7 days and is added correctly on Google Play console under subscription.

I've got the same issue here. My app update got rejected because trial eligibility was shown wrongly (even though this case isn't the 'bad' one, as it gives a trial without informing the user before)

xianmueller avatar Dec 15 '23 20:12 xianmueller