I am working on adding In-App purchases to my app.
I am able to receive the productsRequest:didReceiveResponse
method, and receive the array of products
As Apple's Documentation:
Cannot connect to iTunes Store The "Cannot connect to iTunes Store" issue may be due to one or more of the following reasons:
https://developer.apple.com/library/content/technotes/tn2413/_index.html
I got the same error,
When I called SKProductsRequest
's start
method in my test env,
It ran in
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error
When I called in my production env,
It's correct and ran in
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
Close charles
or any http proxy software asap!
Close charles
or any http proxy software asap!
Close charles
or any http proxy software asap!
You know it~
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
Well, as usual I "tried all solutions available and it didn't help" :) So, here is my input to this unlimited collection of stumble stones:
If application is not currently on sale (at any reason), this error occurs.
Simply log off from your AppStore account on settings...
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.
This is the most common cause I have seen on my device.
You can check if the following link is working or timing out:
https://sandbox.itunes.apple.com/verifyReceipt
Alternatively, an unscientific but quite reliable way to check if the sandbox is working is to ask at:
https://devforums.apple.com/community/ios/connected/purchase
If the sandbox is down, there will probably be people already talking about it, like now (18 Jan 2012, 6:40pm UTC time).