iPhone not forgetting test user account (in app purchase) - ios

While adding in some in-app-purchases to an app, I created a test user account in iTunes Connect. After "buying" the items in the store with the test user, I then deleted that test user and created another.
The problem I'm having is that the phone still asks for the original test account's password constantly. This test account isn't logged in under the "iTunes & App Store" settings, nor anywhere else I'm aware of.
I've tried doing a backup & restore, and still no progress. Does this issue sound familiar? Any ideas of other things to try would be terrific.
Thanks for reading.

Make sure you have signed out test user account from within your device:
Sign out of the app store from Settings in iOS: Go to Settings >
iTunes & App Store, tap your Apple ID, then tap ‘Sign Out’
In your app, initiate your IAP
You will be prompted to enter credentials for username and password
Hope this helps!

Related

In-App Purchase does not prompt for email

I am trying to add an In-App Subscription to my app, but when I execute my code... or any In-App Sample.. I am prompted with a dialog that only asks for the password... NO EMAIL
The first time I tried my code it prompted for email but subsequent times it only prompts for password. I deleted my app and have tried several sample In-App projects but they all ask for just the password. I have reset the settings on the iPad but still only password. I have signed in and out of my Apple ID several times. Tried it logged in and not logged n but I only get a password prompt. Obviously I am new to In-App purchase code, but none of the samples prompt for email either. I clearly am misunderstanding something.
What happened to the e-mail prompt?
So I solved my problem with this. It turns out there is an option in the settings. If you tap the iCloud settings then choose iTunes & App Store, there is an option at the very bottom entitled, "Sandbox Account"
On my systems it was set to my REAL apple id. I need to change that to the id from the dev site.
Hope it helps someone else with a similar issue.
The best to test IAP is to use physical device with sandbox account credentials,
Steps :-
Create sandbox credentials in iTunes, make sure every setup is correct.
Remove all logged in account from the device by going through phone settings.
Run the app
And test with your sandbox credentials.
In simulator IAP won't work it always prompt the pop up when you launch the app asking password because you have logged with your apple credentials in your system.
It is taking Email from there. Resetting and relaunching is not a solution.
Follow above steps to test properly.
Thanks

iOS In app purchase sandbox user asking for verification

I created a test user for the irish store
Signed out of my personal account
Launched the application and tried to make the purchase
I get the "Apple ID Verification" prompt
Asks me to set a new password
Please help
I was having the same issue (Australian App Store) and today things seem to have gone back to normal, but the behaviour is slightly different from before.
This has now worked for me:
- Created a new Sandbox user on iTunes Connect.
- Followed the link in the email sent to verify the email address.
- In the app, when interacting with StoreKit, the app will then ask for the App Store credentials. Enter the username and password.
- The "Apple ID Verification" alert will pop up. Tap "Settings".
- Change the password as instructed.
- In the app, repeat the operation that interacts with StoreKit. This should now work correctly.
Now is working fine...after friday 13 jan the same process works as expected. It's enough to verify the email and the sandbox allows you to try IAP! Should be only an Apple bug on their servers.
You need to setup Test users in iTunes Connect portal which you can use to test In App purchase functionality with Sandbox environment. You can't test in-app purchase functionality in sandbox environment using actual Apple account.
https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/TestingInAppPurchases.html

iPhone asks me to enter sandbox Apple ID password constantly

I created a number of sandbox Apple IDs for testing with In-App purchase. Logged out of the App Store on my iPhone, and logged in on those accounts.
Now the behaviour I'm seeing is that my phone constantly wants me to enter the password for these Apple IDs. It doesn't stop.
I've tried pressing "OK" until they go away, I've tried entering the password, I've tried signing into these accounts on the App Store, then signing out. I've tried restarting my phone.
Short of 'Restore to factory settings', is there anything else I can do?

unable to complete the test transaction, using Store Kit frame work (wrapped in c++) and a test user account

I just set up in app purchase for my game using the StoreKit ,wrapped in c++. When I purchase a product in my game,
it asks for the iTune credentials. I put my test user accounts credentials. Then it tells , that its Sandbox environment and asks to tap buy. On tapping buy , it redirects to the iTunes, there again it asks for the credentials , I again fill the info and it further tells this is sandbox environment , I touch continue , then it either says "Cannot connect to iTunes" or prompts for the credentials again.
Also on tapping buy , first time , the transaction fails, logging the message to the console. And its description says same thing "Cannot connect to iTunes Store"
Edit: While it shows this message , there is a pop up asking "Verification Required"....some text... [ Environment:Sandbox], Here I tap on "Continue". From here it redirects to iTunes.
I have already tried:
Signing out of the iTunes in my device.
Creating a new test account.[ for Indian store].
Uninstalling the app from the device and installing again.
Edit: I believe products are added correctly in the iTunes as I am fetching them from it and then displaying them, and there cost are correct.
But still no way! Does anyone knows what I might be missing.
I came to know that agent team was providing me invalid test account.They were creating the account and then trying to login to apple store to the buy something using this test account, which immediately invalidates the test account. So creating new test account and then not using it to login to app store solved the problem.

How check sandbox server status? ("Cannot connect to itunes store")

I'm developing in-app purchase using this excellent tutorial:
http://www.raywenderlich.com/21081/introduction-to-in-app-purchases-in-ios-6-tutorial
and I'm getting an error "Cannot connect to itunes store" which it seems can be related to Apple's sandbox servers being down; apart from googling for tweets regarding sandbox status, is there any other way of confirming their status otherwise it's difficult (read ipossible) to debug.
Almost a year late, but I'm facing the same problem right now. As far as I know, the best way to test the status of the iTunes Sandbox environment is checking this url:
http://sandbox.itunes.apple.com
An Http/1.1 Service Unavailable means SSErrorHTTPStatusCodeKey=503 in your debugger output.
I'll answer this in case someone else also comes up against this. I have an app in the app store that was built using the tutorial mentioned in the question, and it performs flawlessly. Unfortunately, in my experience the reliability of the Apple Sandbox servers can be iffy, with no obvious place to check online aside from posting to the Apple forums and hoping for a corroborative reply.
As others have said on StackOverflow, the key is to make sure that:
You create at least one test user account at itunesconnect.apple.com
Make sure that there is NO credit card associated with the test account
DO NOT sign into iTunes on your test device with the test account. Instead, SIGN OUT of any iTunes Store account you are signed into. Then try purchasing an IAP. It will ask for your username and password - give it your test username(s).
I got the "Cannot connect to itunes store" error when using a tester sandbox account. The problem was I had signed in on my iPhone with that account and confirmed the email address associated with the test account.
I solved the problem by creating a new tester account under Users and Roles in Itunes Connect and never sign in on my device with the account.
The reason for the error in my case was that when I confirmed the email address, the account was registered as a production account in AppStore and it did not work as a sandbox account anymore.
So if you sign in on your device once, the account will be registered as a production account and even if you sign out again, that account won´t work in the sandbox.
For testing an app in Sand Box . Follow these steps
To test IAP ,we have to create a test user at itunesconnect.apple.com
Go to Settings and sign out from all active accounts (mail, iTunes & App Store , Game Center)
Restart your device.
Run your app on the device. Click on the IAP button -> choose existing account -> enter apple id and password created from step 1. Now everything will be fine.

Resources