Skip to main content
Solved

How to test checkTrialOrIntroductoryPriceEligibility on iOS?

  • January 25, 2024
  • 1 reply
  • 254 views

Forum|alt.badge.img+5

Running a Development Build as well as a TestFlight build both return UNKNOWN STATUS for the iOS method `checkTrialOrIntroductoryPriceEligibility`. 

I have read other posts that state Sandbox users won’t have a receipt on file to validate, but won’t brand new users NOT have a receipt on file to validate as well? Shouldn’t this scenario make them eligible? 

Also why would a TestFlight build be returning Unknown Status? 

I am hesitant to use this method if I can’t even get it to return anything but Unknown. 

"react-native-purchases": "^6.1.0"

Best answer by sharif

Hey @Chani Team,

We have noticed these errors happening more in sandbox environments. In production, even new users who just downloaded your app will have a receipt since the receipt download is managed by the OS. In sandbox, your development app downloads its own receipt, which can cause issues before it’s downloaded (and this is beside the other issues that we’ve seen.) We’ve filed some radars with Apple to hopefully fix some of them but one small fix you can do is to create a new in-app purchase product that is used just for testing. In sandbox or TestFlight you can purchase it to generate a receipt so that your trial eligibility check works for your “real” products.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • Answer
  • January 29, 2024

Hey @Chani Team,

We have noticed these errors happening more in sandbox environments. In production, even new users who just downloaded your app will have a receipt since the receipt download is managed by the OS. In sandbox, your development app downloads its own receipt, which can cause issues before it’s downloaded (and this is beside the other issues that we’ve seen.) We’ve filed some radars with Apple to hopefully fix some of them but one small fix you can do is to create a new in-app purchase product that is used just for testing. In sandbox or TestFlight you can purchase it to generate a receipt so that your trial eligibility check works for your “real” products.


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