Andrey Chernukha
Andrey Chernukha

Reputation: 21808

iOS. In-App-Purchase mysterious error

I have In-App-Purchase in my app. I have enabled it few days ago and it worked all these days. But today weird thing started to happen. It still works perfectly on simulator but it stopped working on a device. This is how it looks - i launch the app (i have to note that i'm not signed in in any iTunesConnect account in Settings so this is not a kind of common error), then i successfully receive my products from StoreKit, then i tap BUY button and StoreKit shows me standard alert "Do you want to buy", i click YES, everything is OK, i'm prompted to enter test user credentials and after i did it transaction fails few seconds later with error code 0, and description "Cannot connect to iTunes". What the hell is that??? It works like a charm in simulator, why it's happening on a device? I have created another test user but it didn't help. I just don't know what else to try. Any ideas?

Upvotes: 0

Views: 438

Answers (1)

ryan cumley
ryan cumley

Reputation: 1931

Did you upload your binary for review on iTunesConnect? Testing only works while you are preparing the binary.

As soon as you tell iTunesConnect you are ready to upload, and the status goes to "waiting for upload" or beyond, the test account will no longer work.

If you are not actually ready and still want to test in-app purchases, you can upload any binary, and then immediately reject it. The status will change to "Developer rejected" and you can resume testing in-app purchases again.

Upvotes: 1

Related Questions