"Cannot Connect to Itunes Store" In-App Purchases

Cannot connect to iTunes Store in-app purchases

Make sure you have signed out of any production iTunes accounts on the device.

I was getting this error on my test phone which was logged in with my actual iTunes account. You cannot test apps using your production iTunes account, hence the error. I just wish Apple provided a better error so as to avoid this guesswork...

iPhone Store Kit Cannot connect to iTunes Store

I assume you've done the standard sanity checks: double-checking your code, confirming your product IDs, comparing your code to the In-App Purchase Programming Guide, etc.

This may be ridiculous, but -- if you're certain your code is correct -- do a hard reset (full wipe) of your iPod (Settings => General => Reset => Erase All Content and Settings). I puzzled over this exact problem for hours -- it turned out my code was correct and the hard reset was the solution.

Cannot connect to iTunes Store with newly created sandbox tester

After a lot of searching, I was able to find the answer online:

https://forums.developer.apple.com/thread/90594
It was posted by: neilc

This is what worked for me in the end:

-Create a new iTunes Sandbox user. Do NOT verify the email address.

-Sign out of the App Store on your device.

-Begin your purchase flow.

-When prompted, tap Use Existing Account.

-Login with your new Sandbox user.

-You will be prompted to log in again—DON'T! I cannot stress that enough.

-Hit Cancel.

-Background the app.

-Foreground the app.

-Begin your purchase flow again.

-This time, you will be prompted for your Sandbox user's password (the email address will be shown in the prompt).

-Enter your password.

-Continue through the In-App Purchase flow. Purchases will succeed this time around.

If you check your App Store settings on your device, you will notice the Sandbox user is logged in. DO NOT SIGN OUT or you will invalid the Sandbox user and you will have to repeat the above steps from the beginning.



Related Topics



Leave a reply



Submit