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

There is a bug in version 4.4.9. After successful payment, the callback function registered by purchaseUpdatedListener is not called #1031

Closed
summonerriftofficial opened this issue Jun 16, 2020 · 4 comments
Labels
🙏 help wanted Extra attention is needed 📱 iOS Related to iOS

Comments

@summonerriftofficial
Copy link

Version of react-native-iap

4.4.9

Version of react-native

0.62.2

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

purchaseUpdatedListener fire after purchase

Actual behavior

Nothing happens

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

@summonerriftofficial summonerriftofficial changed the title There is a bug in version 4.4.4. After successful payment, the callback function registered by purchaseUpdatedListener is not called There is a bug in version 4.4.9. After successful payment, the callback function registered by purchaseUpdatedListener is not called Jun 16, 2020
@hyochan hyochan added 🙏 help wanted Extra attention is needed 📱 iOS Related to iOS labels Jun 18, 2020
@hyochan
Copy link
Member

hyochan commented Jun 18, 2020

Have you properly called initConnection?

@CoSNaYe
Copy link

CoSNaYe commented Jun 20, 2020

@hyochan thank you! After calling initConnection first, the issue resolved.

@hyochan
Copy link
Member

hyochan commented Jun 20, 2020

@CoSNaYe Sounds great!

@hyochan hyochan closed this as completed Jun 20, 2020
@cromatikap
Copy link

Hi,

I'm facing the same problem and I don't really know how to properly call initConnection.
@CoSNaYe Could you give us a snippet of your working solution? A PR to update the documentation's example in README.md would be highly appreciated as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏 help wanted Extra attention is needed 📱 iOS Related to iOS
Projects
None yet
Development

No branches or pull requests

4 participants