Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot connect to iTunes Store with newly created sandbox tester

For an app that I'm making, I'm including in app purchases and when testing it in the past it always seemed to work besides this morning. I started getting the error: Cannot connect to iTunes Store. I get the error after the IAP prompts me to log in. I created a new sandbox tester and the same thing happens. I'm definitely putting in the correct username and password because when I purposely put the wrong one it tells me through a popup.

I see that its green on https://developer.apple.com/system-status/

Also, I'm testing it on a real device and I make sure that I'm logged out of iTunes before running the app. I've tried restarting my device as well.

Any idea on how I can fix this? Any help would be greatly appreciated!

Thanks in advance!

like image 211
tee Avatar asked Feb 03 '18 15:02

tee


People also ask

How do I log into my Apple sandbox account?

Sign in using a Sandbox Apple ID. In macOS, the sandbox account appears in App Store Preferences after the first time you use the device to make an in-app purchase. Open App Store > Preferences and click the Sign In button to sign in using a Sandbox Apple ID.

How do I change my Apple ID sandbox?

In order to switch back to the real Apple ID, we just go to the Settings->iTunes, App Store, logout the sandbox user, and login with working Apple ID. This is my way of logging into the sandbox user and get back to the real apple id.

What is a sandbox Apple ID?

The Apple sandbox environment lets you test in-app purchases on devices using product information set up in App Store Connect.


1 Answers

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.

like image 102
tee Avatar answered Oct 07 '22 01:10

tee