Serious issue on purchaseUpdatedListener(). It gets all old transaction
See original GitHub issueVersion of react-native-iap
4.6.3
Version of react-native
0.63.3
Platforms you faced the error (IOS or Android or both?)
IOS 14
Expected behavior
Should trigger when an event occured
Actual behavior
When page loaded, all old purchase triggered
Tested environment (Emulator? Real Device?)
Real device
Steps to reproduce the behavior
purchaseUpdateSubscription = purchaseUpdatedListener(async (purchase) => {
console.log('purchaseUpdatedListenerLOG', purchase);
}
It’s really serious issue. In purchaseUpdatedListener
function I make back-end requests. Now all purchases mixed. Need very fast solution.
All below purchases are from july 14. Why we’re getting old transaction values?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
react-native-iap - npm
getPendingPurchasesIOS(), Promise<ProductPurchase[]>, IOS only. Gets all the transactions which are pending to be finished.
Read more >How to use the react-native-iap.purchaseUpdatedListener ...
To help you get started, we've selected a few react-native-iap examples, based on popular ways it is used in public projects. Secure your...
Read more >modules - React Native IAP - dooboolab
Clear Transaction (iOS only) Finish remaining transactions. ... Get all purchases made by the user (either non-consumable, or haven't been consumed yet) ...
Read more >dooboolab/react-native-iap (Raised $40.00) - Issuehunt
if the purchase is not acknowledge, purchaseUpdatedListener will never been called again. (it just been called once) (Android Only).
Read more >In App Purchase seems to be called multiple times
If I understand your correctly, you say that when you first purchase the in-app product, you are getting multiple Toasts?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@hyochan
Looks like a dup #1138.