question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serious issue on purchaseUpdatedListener(). It gets all old transaction

See original GitHub issue

Version 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?

GitHub Logo

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
hakkikonucommented, Oct 1, 2020
0reactions
hyochancommented, Oct 26, 2020

Looks like a dup #1138.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found