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
In the project I work on, we have a purchaseUpdatedListener at the screen level and another at the global level. So, we started noticing that sometimes our backend receives multiple calls fired by the listener after our users tried to purchase a consumable product. Doing some testing, I noticed that after the first purchase, each purchase attempt increases the number of times the purchaseUpdatedListener is called. It seems that removing one of the listeners (the one for the screen) solved the problem. I believe maybe this was reported before in #2171.
Expected Behavior
Each purchaseUpdatedListener registered should be called just one time
Environment:
react-native-iap: 12.15.7
react-native: 0.76.5
Platforms (iOS, Android, emulator, simulator, device): Android emulator (didn't test on other platforms)
The text was updated successfully, but these errors were encountered:
Description
In the project I work on, we have a purchaseUpdatedListener at the screen level and another at the global level. So, we started noticing that sometimes our backend receives multiple calls fired by the listener after our users tried to purchase a consumable product. Doing some testing, I noticed that after the first purchase, each purchase attempt increases the number of times the purchaseUpdatedListener is called. It seems that removing one of the listeners (the one for the screen) solved the problem. I believe maybe this was reported before in #2171.
Expected Behavior
Each purchaseUpdatedListener registered should be called just one time
Environment:
The text was updated successfully, but these errors were encountered: