Sulea Cosmin
Sulea Cosmin

Reputation: 598

SKErrorUnknown while testing in-app purchase

I am working to implement in-app purchase for a project and everything went well except the actual test purchase: - I created the app in iTunes (unique ID, submited a binary, then rejected it because this is not the final one) - created the in-app purchase items - implemented the code - created the test account

What is working: - I got a valid product from store - I got the "Confirm your subscription..." popup - I got the "Share your information ..." popup - and then i got this error: Code=0 “Cannot connect to iTunes Store” (SKErrorUnknown)

Does anyone have any idea on this one ? (I've been googling for two days ... and nothing seems to work).

Thanks.

Upvotes: 2

Views: 3209

Answers (1)

Sulea Cosmin
Sulea Cosmin

Reputation: 598

I think I've found my problem:my app was enabled only for Romania, my test user was localized for Romania - and with this setup does not work.

I've enabled the app for USA and created a test user localized in USA and it seems to work (no code change at all). And I think that proves that the code is ok, just the apple sandbox has some problems with non USA test users.

Upvotes: 3

Related Questions