react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

purchaseUpdateListener for iOS subscription is always called twice

Open Saikedo opened this issue 3 months ago • 3 comments

Description

When making purchases or receiving renewal updates through purchaseUpdateListener on iOS, the notification always arrives twice for some reason. They always arrive somewhere around 2.5 seconds after each other. I tried calling finishTransaction right after I receive the purchaseUpdateListener but still nothing, it works the same way.

Any idea what might be the reason for this double notification for the same purchase?

I am using the Storekit 2 in case if that is relevant.

Expected Behavior

purchaseUpdateListener should have fired only once for the same purcahse

Environment:

  • react-native-iap: 12.13.0
  • Platforms: iOS

Saikedo avatar Mar 27 '24 05:03 Saikedo

I am also facing the same issue. Did you get any solution?

harrymash2006 avatar Mar 29 '24 05:03 harrymash2006

No, I also tried with a minimal example and it is still happening. For now I just made sure that the extra call is not causing any issues on frontend or backend at least so everything is handled correctly even if it gets called multiple times but the double call was still bothering me a bit.

Saikedo avatar Mar 30 '24 02:03 Saikedo