restoreCompletedTransactionsFailedWithError: Error Code 0 (SKErrorUnknown) on Cancel
问题 So basically, I want to display an alert when the restoring of completed transactions fails for some network/iTunes-specific reason, but not when the user taps 'Cancel' on the Apple ID/Password prompt. In my implementation of: - (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error ...I am testing error.code against SKErrorPaymentCancelled (perhaps I should also test against SKErrorPaymentNotAllowed , but that's not relevant now). Still, the