React-native-iap: There is a bug in version 4.4.9. After successful payment, the callback function registered by purchaseUpdatedListener is not called

Created on 16 Jun 2020  ·  4Comments  ·  Source: dooboolab/react-native-iap

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

📱 iOS 🙏 help wanted

Most helpful comment

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

All 4 comments

Have you properly called initConnection?

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

@CoSNaYe Sounds great!

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 :)

Was this page helpful?
0 / 5 - 0 ratings