I am seeing quite a few failed in-app purchases with the error description reading Error Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo=<some hex value> {NSLocalizedDescription=Cannot connect to iTunes Store}
.
What causes this? Every answer I've found on SO is several years old and says this error relates to sandbox issues or trying to buy an IAP in the simulator.
According to my own experience this error (Error Domain=SKErrorDomain Code=2) comes when a user cancels the In-App-Purchase in the system confirmation dialog. So this is not an error, per se. The cancelation is falsely reported as error, would be of cause better if StoreKit reported it as a cancelation instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With