Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trial Period of a product #1051

Open
mohsin-ali-brainx opened this issue Jun 6, 2023 · 6 comments
Open

Trial Period of a product #1051

mohsin-ali-brainx opened this issue Jun 6, 2023 · 6 comments

Comments

@mohsin-ali-brainx
Copy link

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

@RCGitBot
Copy link
Contributor

RCGitBot commented Jun 6, 2023

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

@mohsin-ali-brainx
Copy link
Author

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.

@HaleyRevcat
Copy link
Contributor

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.

@mohsin-ali-brainx
Copy link
Author

@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.

@AlexNsbmr
Copy link

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

@xianmueller
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants