Zღk
Zღk

Reputation: 884

SKErrorDomain Code=0 "Cannot connect to iTunes Store" in IAP iOS Objective c

when i tested IAP for my app, it throws following error

Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" 
UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}

i have tried many links related to this problem but nothing helped. Moreover the "Product Identifier" are also correct and i also created new sandbox user, but no output. Any help would be great.

Upvotes: 18

Views: 4088

Answers (2)

Ramkumar Paulraj
Ramkumar Paulraj

Reputation: 1943

SKPaymentTransactionStatePurchased is not called in Live purchases, Only SKPaymentTransactionStateFailed is called but amount has been deducted from user account. Now user should click the restore button to restore the purchased products. We don't know the solution for this. Now It is the big headache for all the IOS developers. Apple's servers are down for Sandbox environment.

Upvotes: -3

Daniel Ramos
Daniel Ramos

Reputation: 261

Looks like Apple's servers are down for Sandbox environment. Live purchases are working just fine!

Upvotes: 10

Related Questions