Hi everyone!
I've got the same error (SKError.Code.unknown, i.e. 0) and underlying message.
It appears when a client tries to purchase the same product second time.
It looks like this case shouldn't happen, because if all set correct, client shouldn't generate purchase second time.
But I guess, it is easy to reproduce it having second device for the same appleId and initiating second purchase.
Ways to reproduce: Client chooses product item
AppStore shows message that such product has been purchased and is still active
SKPaymentTransactionObserver gets error: SKError.Code.unknown with underlying message (as noticed in initial message of this thread)
So, client knows what happened and transaction observer too.
It is helpful for transaction observer as we can disable spinner on product items screen (for example), but what about other cases when we get such .unknown error code and other underlying messages?
Should we show "Unknown message happened" to a client or just react on it silently, without client notification, and restoring purchases in a background?
Can developers rely on such underlying messages?
What's the goal of such error code?
Thanks in advance.