It never used to come up. But now, there is this popup over and over demanding I sign in to the iTunes store. Even if I hit cancel, the window pops right back up. At a certain point, I can't even play my music because the iTunes player becomes frozen with this popup window on top!
Javaliga, did you hear Gregb? We DON'T WANT TO SIGN IN to the iTunes store. It's got nothing to do with wanting or not wanting to buy anything. We just don't want to be bugged by that sucking popup constantly asking us to login!
Once you select the apple icon in the top left of your screen you can select the force quit option. Then you will proceed from there to force quit iTunes, I guarantee this will get rid of the pop up!
My problem arises when I add a SKPayment to the SKPaymentQueue. After I add the product to the queue, in the paymentQueue:updatedTransactions method the transactions always have the state SKPaymentTransactionStateFailed.
I was getting SKPaymentTransactionStateFailed error code 0 "Cannot connect to iTunes Store" and thanks to thomax for this answer my problem is solved. Turns out you MUST enter a build number under Targets->Summary.
This may be ridiculous, but -- if you're certain your code is correct -- do a hard reset (full wipe) of your iPod (Settings => General => Reset => Erase All Content and Settings). I puzzled over this exact problem for hours -- it turned out my code was correct and the hard reset was the solution.
I had been getting the same error but I had been prompted for my test user account. And also a popup saying "An unknown error has occurred". It turns out that when I created my test user account and signed out of the settings -> store I had decided to sign in with my test user account which had prompted me for a bunch of information including billing, which had broken my test user account. When I created a new test user account and only signed in when prompted to during the in app purchase testing, everything worked smoothly.
I find it helps avoid any confusion if I sign out of my Apple account before doing any In App purchases. Then in the "Sign In" dialog choose the "Use Existing Apple ID" option and enter your Test User details.
Solved the problem for me because my device was logged using my regular Apple ID and because the purchases on the sandbox are always done with the test user ID, the device was trying to send my regular Apple Store ID to the "test" App Store resulting on this "Cannot Connect to iTunes Store" error.
Hit with the same problem, i reset my device, cross verified the identifiers, re-installed the app. Also thought the problem was, because I had changed the reference and the description of the products. In reality, I feel it is because my test user had got locked as multiple people where using the same account, and it is a possibility that the password validation failed multiple times.So I re-created another test user and in-app purchasing is back to working.Hope this helps. I was totally stumped with this error.
After calling addPayment for an auto-renewing product identifier, about one second passed before I received the "SKErrorDomain Code=0" error from StoreKit. At no point was I prompted (as Apple's documentation suggests one should be) for an iTunes Store username and password; the transaction simply failed.
To resolve this, I had to add a fake "consumable" product to iTunes Connect and call addPayment using the fake consumable's product identifier. This caused the iTunes Store dialog to come up. I then logged in with a test account I had created in iTunes Connect. This succeeded: my application was notified that the consumable had been purchased.
I thought it worth mentioning that DonnaLea's solution of only logging in when prompted for payment also worked for the same issue with Unity and Prime31's StoreKit plugin.Attempting to log in via the same settings menu you use to log out will prompt for all manner of billing\address details which seems to permanently "break" that test account.
I found myself in this situation when I was working on adding in-app purchases and didn't do it exactly right the first time. In my case I had an error in server-side PHP and as a result I think I wasn't getting all the way through to "finishTransaction:". Even after I fixed the problems (I put the program on a separate device and purchased successfully), I kept getting "You've already purchased this, click to download" followed by "Cannot connect to iTunes Store".
This is similar to the accepted answer above. I started getting the "cannot connect to iTunes store" error when trying to log in to my iTunes account on my phone after logging in with an IAP sandbox account.
To solve the problem, I was able to just do a Reset All Settings instead of Erase All Content and Settings (Settings => General => Reset => Reset All Settings). Definitely better than having to lose and reinstall everything on your device.
I had this same issue. I had previously created a test user account, and signed out of the itunes store expecting to be prompted with a sign in for my test user account when I made the in app purchase. instead I got the cannot connect to itunes store message. when I signed in with my real itunes username/password and tried my test app it worked perfectly. I then logged out of itunes store again and my app worked great, prompting me for my id/pw
I inserted an external file in the structure of my app. The reason why I did this is because in production, I insert this file dinamicaly from a server, but in development I thought it was faster to use an app called iExplorer to paste this file. I have done this is the past and I didn't have this problem. But in the last few days, if I paste this file directly using iExplorer, my app returns the error: "Cannot connect to iTunes Store". (in spanish: "No puede conectarse a iTunes Store").
I think that it is because this time I inserted the file inside the .app folder. So this makes me think that if you modify your .app folder in any way, the Codesignature breaks and the link with the iTunes Store stops working directly.
I experienced the same problem a few days ago, where it stopped working from one day to the other. I got the following error after having authenticated with my test user(s): Error Domain=SKErrorDomain Code=0 UserInfo=0x165000 "Cannot connect to iTunes Store"
I went through all the available checklists and all possible solutions (everything mentioned above as well) without any success. Finally I figured I might as well take a break from it all over the weekend, since I was drawing blanks. And oddly (and for the first time ever), doing nothing actually worked! I didn't change any code, nor did anything change on our iTunes account or the app.
Check if you are signed into your personal itunes account in the appstore. If you are you will receive this message. Even if you are signed into your sandbox account in the app. So, to resolve this issue sign out of your personal account in the app store and then try to purchase your in-app item and then use your sandbox account. This resolved my issue.
I had had the same problem, but I solved by the following mode:
- I was using iPhone 5S emulator with iOS 8.4 (This is the most important. Apple Store connection is not working on iOS 11 emulator)
- on emulator I turned on the following setting: Settings/Developer/Allow HTTP services (This is for internet connection)
- temporarily I turned off Avast antivirus Web Shield (This is for internet connection too)
On OSX Lion, iTunes keeps prompting me to enter my username and password to "sign in to enable this computer for automatic downloads." In the past I tried checking the box to remember my password but it kept forgetting, so now I just disabled the "always check for available downloads" option in Prefs -> Store. It still prompts me. It drives me crazy.
Is there a way to get it to stop prompting for my password, so it will just behave like a well-behaved offline music library manager, and only ask me for my username and password when I open the iTunes store?
I have an older laptop running OS X. I finally found out how to stop iTunes from asking for a password with each restore. Click System Preferences > Users and Groups > Login items > deselect iTunes.
I am running Windows 7. I was getting the popup every 2 min until I got mad and just clicked the "X" to close the window that asks for password instead of complying with the machine. It hasn't prompted me for a login since and I have been commissioning multiple iPads for use at our Production Plant.
When you first started using iTunes and the iTunes, you were at one point asked to choose a user name and password - an email address as user name: this is what is also called your "Apple ID". If you ever purchased anything from the Apple.com online store, you already have an Apple ID, and can use it as iTunes login (credentials). So, can you change your iTunes email address / Apple ID? The answer is "Yes": this tutorial explains how to do that, and the process of changing your Apple ID is the same on Windows or Mac.
Keep in mind that if you are also using an iPhone, iPod touch, or an iPad, you will need to remember to change your Apple ID from there too: when you make purchases from the iTunes Store or App Store, your device always remembers your Apple ID, and only asks for your password. The next sections of this tutorial explains how to change your Apple ID on all three devices.
03c5feb9e7