Skip to main content
Solved

[Android] SkuDetails freeTrialPeriod is returning an empty string

  • 16 February 2022
  • 2 replies
  • 364 views

Forum|alt.badge.img+1

We've recently noticed an issue with some our Android users, that we are not able to display the trial period for them. We get this information from SkuDetails.freeTrialPeriod, and parse that value.

However, for these users, SkuDetails.freeTrialPeriod is returning an empty string (even though the corresponding SKU has a trial period configured in Play Console); we are not able to reproduce this issue using this same SKU locally.

We're curious to hear if anyone else also uses this information, and if they've noticed anything strange lately? Or if there is any other way of reliably getting this info?

We've also created this issue in the official issue tracker: https://issuetracker.google.com/issues/219799769

Best answer by Andy

Hey @Guilherme Krzisch

 

We have heard of more people running into this: https://github.com/RevenueCat/purchases-flutter/issues/329

 

I have also run into this myself, and was able to reproduce on a physical device. On a brand new emulator, however, I did get the correct values. 

 

There isn’t another clear way of getting the freeTrialPeriod other than the billing client. You could try to parse the product identifier if you’re following a naming scheme, but that can be brittle. 

 

Let’s hope we get a response from Google on this soon. 

 

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

2 replies

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

Hey @Guilherme Krzisch

 

We have heard of more people running into this: https://github.com/RevenueCat/purchases-flutter/issues/329

 

I have also run into this myself, and was able to reproduce on a physical device. On a brand new emulator, however, I did get the correct values. 

 

There isn’t another clear way of getting the freeTrialPeriod other than the billing client. You could try to parse the product identifier if you’re following a naming scheme, but that can be brittle. 

 

Let’s hope we get a response from Google on this soon. 

 


Forum|alt.badge.img+5
  • New Member
  • 2 replies
  • July 6, 2022

I have no help to offer, but just thought I would let you know that we are also running into this issue. However, it is only happening with one particular user. Everyone else seems to be fine.

According to our analytics, the free trial period seems to be missing all together rather than an empty string, which is kind of strange considering that the method to get the free trial period is marked @NonNull. 


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