IOS IAP Error Domain = SKErrorDomain Code = 2 in production
I see quite a few unsuccessful in-app purchases with error descriptions Error Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo=<some hex value> {NSLocalizedDescription=Cannot connect to iTunes Store}
.
What is causing this? Every answer I have found on SO is several years old and says this error is due to sandboxing issues or trying to buy IAP in a simulator.
+3
source to share