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!
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.
The error domain name for StoreKit errors.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With