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?
Related
I'm trying to add In App Purchases to my app so I set up a sandbox Apple ID with one of those myemail+test01#domain.com types of emails. I also copied the password from Notes straight into App Store Connect, so it's definitely not messed up there.
I got the verification email, I verified, then I tried signing the Apple ID into the simulator using my app. I typed in the details at the point where the fields in that alert comes up, I press ok, then nothing. The box disappears and nothing comes up. I tap the button again, then the Apple ID prompt shows up again.
Then I tried it in Settings by going to "Sign in with your Apple ID" and typed in my Apple ID & password in there, and I got a message saying "User name or password is incorrect."
I tried setting up another sandbox account with a different password format, got that verified, then the same thing happened.
How do I get this working correctly and sign in properly? I obviously need to test these things before I launch.
I fixed it by logging into iCloud.com once using the sandbox account, then signing into the iPhone simulator.
(I tried accepting this answer, but it won't let me for 2 days :/)
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
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
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!
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.