I have an app in the App Store and I want to test in-app purchases. I followed the steps described on the Apple website but I'm facing some problems.
When I try to log in in the iTunes in my application or in Settings/iTunes & App Stores, I receive the error:
iTunes account creation not allowed.
This Apple ID cannot be used with the iTunes Store at this time. Please try again later
I searched the internet but I found nothing about this. It seems like I am the first to encounter this kind of error.
Looks like Apple has this poorly documented. Basically, you shouldn't log in with your sandbox user from that screen. Log in when actually prompted by your test IAP.
Source: Unable to log in with sandbox test users on device
I just had the same problem. Here's how I solved it:
Don't try to sign in Settings > iTunes & App Stores
Log out of iTunes & App Stores (make sure you're not logged into any account)
Just open the app you're trying to test
Your app will promt you to sign in
Enter your credentials for your sandbox test account
Et voilà! You're done. Worked for me. I hope it works for you.
For those who are still facing an issue, here is the solution:
From settings main screen, select "iTunes & App Store", as seen in the picture
now scroll to bottom and you will find your previous apple is still there, sign out of that, see picture for reference, and now when doing in app purchase, it will ask for both apple id and password, use your sandbox tester apple id and password there.
I had this issue. I tried changing existing Sandbox tester account password and tried to login on device...but didn't worked.
Even iPhone device restart didn't worked [last option that most developer follows ;-) ]
I thought it takes time to update this newly created Sandbox testing on DB. So left the login option as it is on device
Now, after launching app that contains In App purchase. Press on button that is responsible for In App purchase. This will prompt for Apple credentials. Enter the Sandbox tester credentials here.
Voila this worked for me!
This has changed... again. Here's how to fix it in 2020:
0) On your test device, go to Settings.
1) Click your account name at the the top, the one with "Apple ID, iCloud, iTunes & App Store" under it.
2) Click "iTunes & App Store"
3) Scroll all the way to the bottom and find the option: "SANDBOX ACCOUNT". It will have defaulted to your AppleID. Tap it and sign out.
4) Tap "Sign In" under SANDBOX ACCOUNT.
5) Add your Sand Box Account credentials. You will probably have to have verified your email address before this will work.
The top answer is correct, but if you're still having the issue:
Make sure that the app you're trying to log into is a development app installed with Xcode. You'll get the same error if your version was installed from the App Store.
(I got confused because I have 5 versions of almost the same app.)
Related
I am testing a non-consumable IAP on an iPhone 6s running iOS 11 GM.
Whenever I tap my "Buy" button, it asks me to sign in. I tap "Sign in with existing apple ID" and enter my sandbox user details (which worked fine as of a few days ago on iOS 10).
After entering, it just goes back to the same "Sign in" screen. I tried entering a few more times and it just goes back to the same screen again. Keeps looping forever.
Is this down for anyone else?
The same thing happens for me, for three separate sandbox users which were created before iOS 11 release. (The problem seems prevalent on iOS 11, there are posts on reddit and apple forums reporting this issue)
It seems creating new fresh sandbox user is the way to go. Sandbox users created after iOS 11 release work, while those created before the release cause "Sign in/Create Apple id" alert loop.
I did this steps and it's works
logout your account from iPhone
create fresh sandbox account
use the app to purchase anything - it will ask you for your login information
put the fresh sandbox account - it will ask you again your login information
leave the message and close the app
open the app again and try to purchase anything and it will works ^^"
Fixed as follows
Create new sandbox account.
Logout iTunes account from device setting.
Try to purchase and enter new sandbox account when popup appears.
NOTE: It may not work first time, I entered account twice & it worked second time.
If it does not work after few day try new account.
Go to Settings ▸ iTunes & Appstore scroll to bottom.
You can add account here for sand box purchase.
For iOS 11 and older, sign out the existing account if any. For iOS 12 and newer do not sign out of your Apple account - but manage it at the bottom of the page mentioned above.
Docs: https://developer.apple.com/documentation/storekit/in-app_purchase/testing_in-app_purchase_transactions
To keep the sandbox account operational, be sure to only use it when you see [Environment: Sandbox] on the login prompt. For all sandbox accounts, you still have to go through the email-verification process (click link in email).
This is what just worked for me.
1) Go to setting on your device and sign out of your current account. Then sign in with your Sandbox account.
2) Power off your device and when it boots in open the app you are testing. It may ask for you to enter in you password (which would be the sandbox user's password)
This should fix the issue...
Let me know if you tried and the outcome.
I'm trying to test my app's in-app purchases but when I try to log in as my sandbox tester it tries to send me to the settings screen to sign in there. however as I understand it, wouldn't that invalidate the tester.
Steps in order as I did them:
1: Create sandbox tester account on iTunes connect
2: sign out of itunes and app store as well as iCloud
3: opened the app and tried to purchase something. was prompted, telling me to sign into an account.
4: Signed in using the test users credentials and still got redirected to the settings screen. What am I doing wrong?
According to some people on the apple developer forums, regarding this particular issue, of course, you need only to verify the account and it seems to have done the trick for me.
I'm not able to login into my new iPhone 6s(iOS 10.0.1) with this sandbox account for testing apple way. While able to login into web icloud, itunes and tested on my old iPhone 6+(iOS 10 beta 5).
Everytime try to login into iPhone 6s(iOS 10.0.1) I got this error message.
iTunes account creation not allowed
This apple ID cannot be used with the iTunes Stores at this time. Please try again.
Help me what to do, is this bug from Apple side
I have tried this many time. And getting same thing as you described. At last i were able to add test credit card for testing apple pay by following these steps:
Log out from your itunes and app store
Log out from iCloud
Change your region(Settings->general->Language and Region) to country which supports Apple pay
Now open Wallet app
You will be asked to login to iCloud account.
Login with your Sandbox Tester account
Now add Test credit cards to your account.
To get test credit cards details: You can check the cards details shown in this document: https://developer.apple.com/support/apple-pay-sandbox/
Note: When you add test credit cards, some credit cards detail might get failed in verification, then you have to try another one, Luckily you will be able to add after 3-4 tries.
You can't login to iTunes with a Sandbox account.
If you mistakenly use a sandbox tester account to log in to a production environment, like iTunes, on your test device instead of your test environment, the sandbox account becomes invalid and can’t be used again. If this happens, create a new sandbox tester account with a new email address.
I developed a Phonegap iOS app that implements In app purchase. As suggested here, I used a sandbox user in order to test the IAP during the development process in iOS, but i can not find a way to switch back to my personal account to authenticate the application.
At the start of the development process, i signed out with my personal account, i didn't login with my sandbox user in General > iTunes & App Store, i started the application and i logged in with my sandbox user from that.
It is time now to pass to production and i can not figure out how to logout the sand box user from my app. If i start the application a Sign In popup is displayed and the sandbox email is there. It simply ask for the password but now chance to change the account. When i login within the application the sandbox user account is logged in General > iTunes & App Store, but if i log out from there the application is stuck with the sandbox email. In other words, it is like if the app is now linked to that email account and it does not give me the chance to change it.
I tried to remove the application (tapping on it and pressing the X button and from General > Manage storage), install it again, to soft reset the iPhone, log out from iTunes & App Store, rebuild the application in debug mode or not, including the plugin or not, in many combination but with no success.
Does anybody experienced something like this? How did you logout your sandbox user when you switched back to your personal iTunes Connect account?
I'm not sure how it looks like on previous iOS versions, but on iOS 12.0 you can open:
Settings > Your Name (Apple ID, iCloud & App Store) > iTunes & App Store
There you will find a section called "SANDBOX ACCOUNT" where you can sign out of the sandbox account you've been using.
On iOS 14 & 15:
Go to Settings > App Store
Scroll down until the end and you'll find the title "SANDBOX ACCOUNT", there you'll see the sandbox account you are currently logged in to, tap over it and it will let you change it.
I have found 2 ways to avoid the problem but first be sure to use a "fresh" testing account.
Change the Bundle Identifier in Xcode and iTunes Connect
Restore the iPhone
I go for the first one because my Testing device is also my personal iPhone and I can't afford restoring every week.
I spent so much time on that so I hope my answer can help you.
I am testing in-app purchase and restoration. Testing was going fine until I tried to switch test users.
I mistakenly tried to sign in via Settings ("iTunes & App Store"), where I signed out as Test User 1 and started to sign in as Test User 2. When the App Store gave me "This Apple ID has not yet been used in the iTunes Store, etc." and prompted for my credit card information, I realized my mistake and cancelled the sign-in.
But now every time I run my app via XCode, it prompts me to "Sign In to iTunes Store" as Test User 1. I cancel it and then everything proceeds normally. But I would like to get rid of this weird behavior.
I have tried signing in. That doesn't stop it. Then I tried going into Settings ("iTunes & App Store") and signing out. That also doesn't stop it. Also tried rebooting phone and then a hard reset.
This problem went away overnight. It may have beeen a caching issue with the sandbox and/or App Store.