Skip to main content
Solved

Does StoreKit Configuration under Product->Scheme need to be set to none in order to test in device

  • March 4, 2024
  • 1 reply
  • 89 views

Forum|alt.badge.img+3

I’ve noticed that in order to see the purchase status reflected correctly under App Store → Sandbox Account → Subscriptions, I will need to set in Xcode Product->Scheme->StoreKit Configuration to none. But in doing so, I’m unable to retrieve the correct Trial offer eligibility information. 

On the other hand, if I set a value to the StoreKit configuration file, then I’m able to see the up to date trial offer eligibility info on Paywall, but the purchase won’t show up under App Store → Sandbox Account → Subscriptions, in spite of the success purchase confirmation.

What is the proper way to test in the sandbox environment in this case? Please advise. Thank you. 

Best answer by kaitlin

Hi @jbb-8532ff,

This does seem correct to me - the StoreKit Configuration file is a way to test without being connected to the App Store’s sandbox environment, so you could really only test in one or the other. If you’re testing on device, my advice would be to set your StoreKit Config Scheme to none, then create a new sandbox user to test with. Most likely, the trial eligibility info is not working on the paywall due to the user having previously held a trial and creating a brand new user should reset that eligibility. 

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

1 reply

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 365 replies
  • Answer
  • March 6, 2024

Hi @jbb-8532ff,

This does seem correct to me - the StoreKit Configuration file is a way to test without being connected to the App Store’s sandbox environment, so you could really only test in one or the other. If you’re testing on device, my advice would be to set your StoreKit Config Scheme to none, then create a new sandbox user to test with. Most likely, the trial eligibility info is not working on the paywall due to the user having previously held a trial and creating a brand new user should reset that eligibility. 


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