Skip to main content
Answer

Check Eligibility in production Environment is sending "unknown"

  • July 26, 2023
  • 4 replies
  • 515 views

Forum|alt.badge.img+1

Hi, the app is using RC to make a purchase, I already update the bundle Id and the keys into the RC dashboard, However when I tried to make a purchase I’m seeing in the logs that is in sandbox env.

And when the Apple pay dialog is presented, it is displaying information about sandbox user.
 

My question: Should I modify something in the RC dashboard to user a production environment ?

2023-07-26 09:02:41.399867-0500 Sharpen[2703:1095151] [receipt] WARN: 🍎‼️ App running on sandbox without a receipt file. Unable to determine into eligibility unless you've purchased before and there is a receipt available.
request for these products because they were already cached: ["2023.07.premium.recurring.offer"]

2023-07-26 09:02:41.399717-0500 Sharpen[2703:1095151] [network] DEBUG: ℹ️ GetIntroEligibilityOperation: Started

2023-07-26 09:02:41.399867-0500 Sharpen[2703:1095151] [receipt] WARN: 🍎‼️ App running on sandbox without a receipt file. Unable to determine into eligibility unless you've purchased before and there is a receipt available.

2023-07-26 09:02:41.400901-0500 Sharpen[2703:1095151] [network] DEBUG: ℹ️ GetIntroEligibilityOperation: Finished

2023-07-26 09:02:41.400917-0500 Sharpen[2703:1083195] [eligibility] DEBUG: ℹ️ Caching trial or intro eligibility for products: []

Best answer by sharif

Hello,

There is no way for you to switch your app to production. Instead, when you submit your app to the app store, it automatically switches to production. Building and running from Xcode and TestFlight will always be sandbox.

There is a sandbox quirk where the receipt isn't created until you make a purchase. This doesn't happen in production because the receipt is created as soon as you download the app from the app store. In sandbox, you have to make a purchase in order to generate a receipt.

To test eligibility, you can create another in-app purchase and purchase it to  generate the receipt. Then, check the eligibility of the product you actually want to test.

This post has been closed for comments

4 replies

Forum|alt.badge.img+1

is there a way to know the eligibility in testflight env, ?

I always received “unknown”


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Answer
  • July 28, 2023

Hello,

There is no way for you to switch your app to production. Instead, when you submit your app to the app store, it automatically switches to production. Building and running from Xcode and TestFlight will always be sandbox.

There is a sandbox quirk where the receipt isn't created until you make a purchase. This doesn't happen in production because the receipt is created as soon as you download the app from the app store. In sandbox, you have to make a purchase in order to generate a receipt.

To test eligibility, you can create another in-app purchase and purchase it to  generate the receipt. Then, check the eligibility of the product you actually want to test.


Forum|alt.badge.img+1

got it, thank you for the clarification


Forum|alt.badge.img+3
  • Member
  • March 5, 2024

@sharif , regarding 

“To test eligibility, you can create another in-app purchase and purchase it to generate the receipt.”

, would you please expand on how to “create another in-app purchase and purchase it”? 

I’m new to the subscription realm. Appreciate all the information you can share.