Adding a Sandbox Test Account

In iTunesConnect I have a 'Sandbox Tester' account that I use to test my iOS apps with.

Now I want to use this account to test IAP in tvOS.


When I add this account using tvOS settings, I get the message:


No iTunes Store Account

Before using this Apple ID on your Apple TV, you must first login into an iOS device, Mac, or PC to create an iTunes Store Account.


This account has been used before on iOS testing, so I don't understand why it tells me this.


How do I test tvOS IAP?


Thanks,


Bram

Accepted Answer

So, you can test IAP without adding the sandbox account to the settings.

Instead:


Log off from iTunes Account in settings menu.

Then start app, and make IAP.

The app will prompt you for an account.

This doesn't work for me in beta 3. I just get "Cannot connect to iTunes Store" whenever I attempt to make a purchase.


-Brian

Do you retain the SKProduct, by having a strong @property reference?

Yes, I can get my product list and all that just fine. It's only when I attempt to make a purchase that I always get "Cannot connect to iTunes Store".


-Brian

I should also note that even trying to Restore Purchases also results in this same error.

Can you file a bug on developer.apple.com under tvOS SDK, and if possible attach code or a project that reproduces this? Please also include the syslog from the device when hitting this issue.

I submitted a bug yesterday, and I just attached a project which reproduces it. Radar bug # 23016980


Thanks,


-Brian

@Brian Greenstone Have you had any luck resolving this issue?

Nope, I still cannot test my in-app purchases at all. It won't let me login as a sandbox user, and any attempt to make a purchase or restore purchases just results in "Cannot connect to iTunes Store". I don't know what to do.


-Brian

We are having the identical issue. Waiting on Apple to chime in with some insight.

Has this been resolved? We too are having this issue

Nope, and no word from Apple whatsoever.


-Brian

Hey Brian,


I tried on my Apple TV dev kit this morning and I am no longer receiving the "Cannot Connect to iTunes" error message.


Hope that helps!

Brandon

It must be down again because I'm still getting "Cannot Connect...". Are you logged into any account in the ATV's settings, or did you completely log out of the store? I completely logged out.


-Brian

Hi Brian,


I am completely logged out of any App Store accounts. When you trigger the Payment with a sandbox account it will prompt you to log in.


On another note, is In-App Purchasing enabled in your Capabilities tab for your tvOS build target?


Brandon

Adding a Sandbox Test Account
 
 
Q