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

匿名 (未验证) 提交于 2019-12-03 01:49:02

问题:

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.

回答1:

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



回答2:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!