[iOS/StoreKit2] Different error handling for purchase failures #2876
Unanswered
uncoolclub
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed different error handling behaviors in StoreKit2 purchase flows. Is this an intended behavior or a potential issue?
In RNIapIosSk2.swift:
This leads to inconsistent error handling in JavaScript:
Errors like invalid product ID and user cancellation can only be caught in try-catch blocks
Transaction verification errors update currentPurchaseError through events
This makes it difficult to handle purchase errors in a unified way
Is this intended behavior? If not, I think we should either:
Screenshots:
Storekit2
only reject
currentPurchaseError
returnedundefined
Storekit1
currentPurchaseError
returned error objectBeta Was this translation helpful? Give feedback.
All reactions