5

I am trying to test In-App purchase in sandbox env, but it's not working, it asks for a password many times but and always returns failed transaction or sometimes responds with "IAP Error: cannot connect to iTunes store", it was working 2, 3 days before.

Man_Parashar
  • 93
  • 1
  • 10
  • the app is not live yet, so I'm using the sandbox environment – Man_Parashar Oct 16 '20 at 04:44
  • 1
    @KishanBhatiya yes I am still facing the issue – Man_Parashar Oct 16 '20 at 04:54
  • 1
    I have the same issue, how to fix it? Code suddenly stop to work. – RRN Oct 16 '20 at 16:13
  • you fixed the issue? – RRN Oct 17 '20 at 02:29
  • 1
    @RRN Not yet, still searching for the solution. – Man_Parashar Oct 17 '20 at 09:41
  • any solutions so far? I started a thread here as well - I get the "Cannot connect to iTunes store" error as well. Made a post here: https://stackoverflow.com/questions/64407864/revenuecat-getting-this-error-consistently-in-sandbox-there-is-a-problem-with/64409151#64409151 – The Flying Dutchman Oct 18 '20 at 02:48
  • 1
    @TheFlyingDutchman, still searching, raised a ticket to Apple, waiting for updates from their side. – Man_Parashar Oct 19 '20 at 08:44
  • 1
    Thanks Aman. BTW - if you update to iOS 14, it works. It looks like they regressed sandbox for older iOS versions, when they released iOS 14. – The Flying Dutchman Oct 20 '20 at 02:59
  • @TheFlyingDutchman, Thanks. Mine is also started working after upgrading to iOS 14.0.1 – Man_Parashar Oct 20 '20 at 05:05
  • May be due to intermittent issues with Apple's Sandbox environment that you have no control over. See: https://www.google.com/search?q=There+was+a+problem+with+the+App+Store+error+RevenueCat&oq=There+was+a+problem+with+the+App+Store+error+RevenueCat https://support.revenuecat.com/hc/en-us/articles/360046399333-App-Store-STORE-PROBLEM-error https://docs.revenuecat.com/discuss/5d6cd49434b48f001c51efd4 https://developer.apple.com/forums/thread/661351 – louiechristie Mar 17 '21 at 10:13

3 Answers3

1

I had the same problem, the solution was to update the test device to iOS 14.

Gabor Szigeti
  • 241
  • 2
  • 4
0

you can try this gist code that I have used in past months, it works with dev environment and live environment for AppStore release. You can expand the IAPService with methods that your app needs. Check gist code:

https://gist.github.com/egzonpllana/abd6d385bb45b1e329fe85a624ee531f

Egzon P.
  • 4,498
  • 3
  • 32
  • 31
  • I am using the same method for performing purchase and it was working 2 days before, today it stopped working suddenly, I am using sandbox users for purchasing, my in-app products are not live now. – Man_Parashar Oct 15 '20 at 10:53
  • Sad to hear that, I have read that sometimes sandbox does not work (very rare to happen). I wish you find a solution asap. – Egzon P. Oct 15 '20 at 10:58
0

I assume that this temporary error is from the Apple sandbox side. Still getting the same "Cannot connect to iTunes store" error for IOS 13 devices. I manage to test the same code on IOS 12 iPhone device and the in-app purchases working well there (No Issue).

  • @AmanParashar check the same application code on IOS 12 and let me know if I can assist you further. Thanks – Umair Ahmed Oct 18 '20 at 20:50
  • so it seems the issue only happen on IOS 13? IOS 12 and 14 has no issue? – RRN Oct 19 '20 at 04:47
  • I have iOS 12.4.8 but still i'm facing same issue – Kishan Bhatiya Oct 19 '20 at 05:03
  • @KishanBhatiya Sorry to hear that. Is the same code working previously(Around 5-6 days ago)? My code was working perfectly on 14th, on all IOS devices, but now it is only working for IOS 12 only. – Umair Ahmed Oct 19 '20 at 06:10
  • @UmairAhmed, I already tried on iOS 14, iOS 13 both, but it's not working in both of them. let me try this in iOS 12 too. – Man_Parashar Oct 19 '20 at 08:46
  • Hi, am having an issue with iOS 15, it asks for an apple id and password, which if I don't provide, the appStoreReceiptURL path does not exist in the device problem happens. Did anyone get the solution for it? – Zulqarnain Naveed Nov 15 '21 at 11:23