You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I discovered that transactionReason was incorrectly set to RENEW instead of PURCHASE, for iOS purchases that had been previously cancelled and then purchased again in the purchaseUpdatedListener/onPurchaseSuccess callback.
Since the purchaseUpdatedListener/onPurchaseSuccess callback also returns all staged renewal events together with the new purchase, I used transactionReason as a reliable flag to identify 100% new transactions and skip old renewals in react-native-iap versions 12.x.x and 13.x.x. However, in the new version this logic is broken.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I discovered that
transactionReasonwas incorrectly set toRENEWinstead ofPURCHASE, for iOS purchases that had been previously cancelled and then purchased again in thepurchaseUpdatedListener/onPurchaseSuccesscallback.Since the
purchaseUpdatedListener/onPurchaseSuccesscallback also returns all staged renewal events together with the new purchase, I usedtransactionReasonas a reliable flag to identify 100% new transactions and skip old renewals in react-native-iap versions 12.x.x and 13.x.x. However, in the new version this logic is broken.Created PR with fix here hyodotdev/openiap-apple#21.
Beta Was this translation helpful? Give feedback.
All reactions