[IAP] My in app purchases almost work, but enters an infinite loop in the app store

So after waiting and trying and retrying. The IAP module almost worked for me.

It sent me the Buy nor not buy notification message. I touch Buy. And then, a notification telling me it need verification, then asks for my password. I enter my password and it takes me to what i think is the app store app, with a notification that only says: “Enviroment Sandbox”. I touch continue and then it asks for my password again. and then it loops back to the “Enviroment Sandbox” message, and back to asking my password.

I of course click cancel, and i’m on the app store app.

Back into my app i recieve ErrorType: Unknown, and ErrorString: “Cannot connect to itunes store”

Can anybody help me? [import]uid: 41025 topic_id: 27644 reply_id: 327644[/import]

Try searching this on google (copy and past the whole line):

‘Cannot connect to itunes store’ site:developer.anscamobile.com/forum

I had the same error, and I was able to fix it by resetting my device, but you may not want to do the same. Also, the cause of the error may not be the same.

Naomi [import]uid: 67217 topic_id: 27644 reply_id: 112198[/import]

I expected an answer from you. Damn. I don’t want to lose all my game scores… damn… Do you know if i can backup some of my stuff? [import]uid: 41025 topic_id: 27644 reply_id: 112205[/import]

@schmidtsonian6, how about setting up a new test user? Log out of your current test user before launching your game, and log in with a new test user account? I expect it will not affect non-IAP related data (like your game scores, etc.) I don’t use this method to fix mine, but I’ve read others solving it this way.

And… if it doesn’t work, and if you do need to reset your device, how about using iCloud? (Not sure if iCloud would bring back whatever is broken, but maybe it’s worth a shot?)

If not… you can always programmatically load the data that you want and access it during your development/test phase. I mean, overwriting specific data (like your current score) at the very first launch of the game (and only once). A bit of a hassle but do-able, I think. Just remember to remove/comment-out the code before release.

I hope this helps.

Naomi [import]uid: 67217 topic_id: 27644 reply_id: 112213[/import]

I decided to avoid obstacles and went ahead with the full wipe and sadly, the same thing happened to me again. It enters that loop which i don0’t how to get out of.

Quick notes and please help me know it it’s normal or not. When i activate the test user account on the settings/app store i get a message telling me that this id has never been used with the app store and asks me a bit of info about the location of the user account, State, and there’s others fields already filled up for me such as Cupertino for City for instance. then it asks me for billing information where i put none. And then i can go on… to what happens in the app, as i describes before…

Any idea, what could be going on? [import]uid: 41025 topic_id: 27644 reply_id: 112233[/import]

With your test user accounts, you don’t log in from app store. In fact, you have to log out of app store first before you launch your game. When you trigger IAP from inside your game, the app will ask for you ID (in sandbox), and you enter test user then.

If you’ve tried to log in to app store using your test user account, it might’ve transformed the test user account to normal user account. So you might want to create a new test user in iTunes before you start this process again.

Just to clarify, when I wipe/reset my device, I do log in with my normal apple user account. Once the device is set up and ready to use, I log out of app store before I do anything. And then, I install my game on device, launch it, go to IAP screen, trigger purchase (which prompts me to sign in), and I sign in using test user account.

Naomi [import]uid: 67217 topic_id: 27644 reply_id: 112235[/import]

You’re the queen of solutions for IAP related issues. Ansca should be giving you a job.

It was That. I was entering the damn info right there on the settings area, and it was indeed converting it to a real account, which in turn caused all of my problems. So…
Create new test account.
Log out other account.
Open My app.
Test IAP.
Enter new test account info.
Worked like a charm.

Thank you Naomi :smiley: [import]uid: 41025 topic_id: 27644 reply_id: 112241[/import]

Glad I could help :slight_smile:

Naomi [import]uid: 67217 topic_id: 27644 reply_id: 112243[/import]