a1phanumeric
a1phanumeric

Reputation: 854

StoreKit Sandbox Testing Doesn't Prompt to Log in

I'm testing an in-app purchase which did work fine a week ago, but now seems to be playing up.

I can load the product from the store without any problems (using NSLog to confirm the product id, price etc...), but when I send the actual request to purchase the product - I don't get challenged to log in to my (test) user account, it just returns an error code -1003 "Cannot connect to iTunes store".

This is strange because it did work a week ago, and now it doesn't. What's weirder is that it does prompt me for my password (to purchase the product) if I am currently logged into my live iTunes account.

It's almost as if the app is checking to see if there is an iTunes account logged in, and if not it will just fail... which is rather annoying as you're not supposed to log into the test accounts via your settings as it will invalidate it.

Can anyone shed some light on this for me? I'd be well chuffed if you could :)

Thanks!

Upvotes: 2

Views: 1074

Answers (2)

Jamie
Jamie

Reputation: 5112

I have had this issue as well. You may want to try one or all of these steps.

  1. Delete the app from your device and rebuild it.

  2. Log out from any iTunes account on the device.

  3. Delete the app. Reboot your device and build and run again.

  4. Log into the iTunesConnect portal and view your test user page.

I have been able to reconnect by doing one or all of these things.

Hope this helps.

Upvotes: 1

Roger
Roger

Reputation: 15813

I've fixed this by creating a new test user. My guess is the test account accidentally saw the live store - which tends to kill them. Might be your problem as well?

Upvotes: 0

Related Questions