Error Domain = SKErrorDomain Code = 3 UserInfo = 0x2a5a00 "Unable to connect to iTunes Store"

I am trying to implement in-app purchases in my app. I implemented it as Apple Programming Guide and the code worked fine until I created a new app, app id, provisioning profile and, app products @ another developer account. Now this is giving me the following error.

Domain Error = SKErrorDomain Code = 3 UserInfo = 0x2a5a00 "Unable to connect to iTunes Store"

The same code works great if I am using the previous developer account, pro certificate and product IDs. This is a very strange problem, I have double checked the product ID names and other things still encountering the same error. Any hint ..?

+2


a source to share


5 answers


Update: Please read this post and file a complaint so Apple can fix this issue.

IPhone storekit sandbox stopped working

Close to the same here - Using iPad

I had an inApp purchase. Everything was in order, everything that was supposed. Then I started getting Error Domain = SKErrorDomain Code = 2 UserInfo = (someHexMemoryAddress) "Can't connect to iTunes Store"

Read on one post to reset all content and settings - that didn't work either.

Tried creating a new test user in iTunes - didn't work.

Made sure my code signing ID in project build settings was set to correct profile generated with all inApp stuff. In fact, it was not, and was somehow tuned to any compatible profile. I changed it to the correct profile. It didn't work though.

Still has the same problem.



Meanwhile, when it worked and then didn't work, the only thing I really did was implement Facebook Connect. One interesting thing is the delegate method -

  • (void) request: (FBRequest *) request didFailWithError: (NSError *) error;

which is also called as a delegate method for SKRequestDelegate. I don't think this is causing a conflict because it is only called when an error occurs.

I can still contact the store for a list of available products. When I submit a purchase request, I get a response telling me: you have already bought this in-app purchase, but it has not been downloaded. I click ok and then I get Error Domain = bla bla bla.

Interestingly, I got a previous purchase dialog, even when purchasing the item for the first time with a new user that I created.

Another thing I found out is if you made a test user and then went into the Settings app and he asked you to get a credit card, it won't work.

You need to - 1. create a new test user, 2. log out of all accounts in the store settings. 3. Then make a purchase in your app and it will ask you to login with an existing user. 4. Log in with the new Test user you created and it will work.

+4


a source


Before you start reading the test, you should read this technical note: http://developer.apple.com/library/ios/#technotes/tn2009/tn2259.html item: "What's next?" point 11.

Another possible reason for this behavior on the iTunes server is an unfinished transaction for this product. You cannot buy a product again while the previous transaction has not yet been completed.



Best wishes, Vadim

+2


a source


I had an error like this. The issue was 1. Lack of provisioning profile customization that can be handled when purchasing apps. 2. Without creating an app profile in iTunes Connect 3. Without creating app purchase items in iTunes Connect

After I installed the above 3 things and used the new provisioning profile when signing the app, I was golden.

0


a source


My first in-app shopping app O also got the same error but with code = 0.ie

Domain Error = SKErrorDomain Code = 0 UserInfo = someHEXno "Unable to connect to iTunes Store"

I've been trying to fix the connection issue for hours.

But the main problem was my name productIdentifiers, that is, I wrote:

SKProductsRequest *productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithObject:@"productnameID"]];

      

but the "productnameID" was wrong. After providing the correct program, the productnameID was still showing the same error

Domain Error = SKErrorDomain Code = 0 UserInfo = 0x2a5a00 "Unable to connect to iTunes Store"

However, it works correctly and displays a purchase warning window.

0


a source


I had the same error as iPhoneBuddy in my application:

Domain error = SKErrorDomain code = 0 UserInfo = 0x2a5a00 "Unable to connect to iTunes Store"

Thanks user495729 Answer I solved the problem!

http://developer.apple.com/library/ios/#technotes/tn2009/tn2259.html

2- Test your application in a sandbox environment. IOS developers should follow these steps: Exit Vault to Settings app on your test device. Set the execution location of your app to the iOS device in Xcode. Build and run your app from Xcode.

On your device, go to System → iTunes & App Stores, click on your Apple ID and sign out. Now run the application and test your IAPs, login with your test user.

If you don't have a test user created, go to “iTunes Connect → Manage Users → Test User → Add New User” and you're good to go!

0


a source







All Articles