I had configured a non-consumable product in iTunes connect and i am able to purchase and restore that product (obviously in sandbox). Initially this is all working as expected, but now when i try to restore the product, i got a call back on the failure method
- (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error
with this error description
Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}
I can purchase the product using the same user account but cannot restore the product after reinstalling the app. When i try to purchase the same product again i got the usual message from the Apple that i had bought this product earlier(as expected). So i think issue is related with restoring the in-app purchase module.
This Apple doc didn't help me either.
I have tried with different sandbox user accounts and all have the same issue.
Any help will be appreciated
Thanks