Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SKErrorDomain Code=0 “Cannot connect to iTunes Store”

Tags:

My application has just gone live on the iTunes Store, and after that, I am unable to start any purchase. I have tested the application and its working fine in Sandbox envoirnemnt. But Live application gives the error

Error Domain=SKErrorDomain Code=0 “Cannot connect to iTunes Store

enum value = SKErrorUnknown

I have tried signing out any test accounts from Store login, but it just doesn't ask for any account login and error keeps on coming. Any clue!

like image 741
Ansari Avatar asked Sep 19 '13 09:09

Ansari


People also ask

What does Skerrordomain 0 mean?

Your test user has become invalidated. This can happen if you accidentally log into the App Store with your test user. When this happens, you'll get error 0 after entering your password to confirm your payment.

What is Skerrordomain?

The error domain name for StoreKit errors.

What does In App purchase not supported mean?

If you get hit with a message on your Apple iPhone or iPad that says “Purchase – In-app purchases are not allowed” when trying to buy purchases from within apps, it may be related to a restriction setting on the device.


1 Answers

This can happen because of the two problems i guess.

  • Make sure you have placed the correct "Product Identifier".If that's the case, then you'll get error 0 shortly after calling -[SKPaymentQueue addPayment:], before you get the popup asking you to confirm payment.

  • Your test user has become invalidated. This can happen if you accidentally log into the App Store with your test user. When this happens, you'll get error 0 after entering your password to confirm your payment.

To fix problem #1, pass in the correct product ID. To fix problem #2, create a new test user on iTunes Connect, and optionally delete the old test user.

Hope this helps you.

like image 50
Manthan Avatar answered Jan 12 '23 07:01

Manthan