Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purchaseUpdateListener for iOS subscription is always called twice #2713

Open
Saikedo opened this issue Mar 27, 2024 · 2 comments
Open

purchaseUpdateListener for iOS subscription is always called twice #2713

Saikedo opened this issue Mar 27, 2024 · 2 comments

Comments

@Saikedo
Copy link

Saikedo commented Mar 27, 2024

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
@harrymash2006
Copy link

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

@Saikedo
Copy link
Author

Saikedo commented Mar 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants