Reputation: 155
I have the following problem: I've added in-app purchases to my app, tested them as it is suggested by apple (I used both my own and sandbox accounts, using test flight distribution version) and everything works. However, when these inapp purchases are being tested during app review by apple , the SKPaymentTransaction fails with error:
code=0 "cannot connect to iTunes store. UserInfo={NSLoalizedDesciption=Cannot connect to iTunes Store}"
what can cause this?
Upvotes: 3
Views: 408
Reputation: 4391
You have to wait a few hours before in-app purchases are available for buying in production (sandbox is different).
I think Apple doesn't review apps in sandbox, so it may be expected behavior. Or maybe throwing an error on buying in-app purchase is part of the review process.
In my opinion, if everything was working in sandbox, you don't have to worry about production (I really think it's about the little delay).
Upvotes: 3