Reputation: 2300
I am being driven into madness by iTunes accounts.
I have been testing IAPs all day, with hosted content, I have switched onto my now third test account, as I need to do multiple tests on the initial purchases of some IAPs I have, and I need to recreate that initial purchase point to check my code.
So, I have named my accounts [email protected], [email protected] etc etc.
I have logged out of test2, and logged into test3, made a purchase on test3 and am still logged into test3.
And now for the mind-break. When my app initially calls [[SKPaymentQueue defaultQueue] addTransactionObserver:self];
, EVERY time, a pop up box appears asking for the password for the user account '[email protected]'. The account is pre-populated, even though I am still shown as logged in as [email protected] in the Settings app from the dashboard.
If I enter the password nothing happens, if I click cancel, nothing happens, not a single delegate method fires. There is nothing in the transactions queue, no downloads pending, nothing.
I have soft reset the phone, cleared all settings, deleted the app, cleaned my build, deleted [email protected] as a user in iTunesconnect, literally nothing I can do will purge this demon.
My IAPs all contain hosted content, I think the phone is stuck into thinking it is due a download, I have finish all transactions appropriately with; [[SKPaymentQueue defaultQueue] finishTransaction:payment];
I am at a loss for ideas, my last resort is a Steve Jobs séance but I doubt that will be very fruitful either.
Upvotes: 2
Views: 255
Reputation: 1590
In my case the transaction was stuck because the transaction with the first test account was not completed.
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
Finishing that transaction allowed me to use other test accounts.
Upvotes: 1