React-native-iap: purchaseUpdatedListener not trigger in ios

Created on 18 Dec 2019  ·  6Comments  ·  Source: dooboolab/react-native-iap

react-native-iap-4.3.3

4.3.3

react-native-0.61.2

Platforms you faced the error (IOS)

Expected behavior

after successfully payment should gone in purchaseUpdatedListener but it shows Cannot read property 'startListening' of undefined

Actual behavior

Cannot read property 'startListening' of undefined

Tested environment (Emulator? Real Device?)

Real Device

Steps to reproduce the behavior

i have two screen for in app purchase
1) For get select subscription and go to next screen
2) agree terms and condition and make payment

in above scenario getting list successfully but in make payment getting error:" Cannot read property 'startListening' of undefined"

Screenshot 2019-12-18 at 5 11 06 PM

📱 iOS 🙏 help wanted

All 6 comments

Could you verify yourself that you've installed react-native-iap correctly?

yes i have installed react-native-iap correctly and in android working perfectally this issue is due to asynchronous in ios. i need help!

Well but startListening is only triggered for android and not ios.
image

The above error message looks very weird to me.

thanks for your suggestion i solved my issue and thanks for your help

thanks for your suggestion i solved my issue and thanks for your help

Good to hear! What was the cause?

It, caused to i forget to manually link to xcode

On Mon, 6 Jan, 2020, 8:43 PM Hyo Chan Jang, notifications@github.com
wrote:

thanks for your suggestion i solved my issue and thanks for your help

Good to hear! What was the cause?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dooboolab/react-native-iap/issues/879?email_source=notifications&email_token=AMBDTX66Z5N6VU44ICDSAV3Q4NDAHA5CNFSM4J4JWKB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIFXEKY#issuecomment-571175467,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMBDTXYLVBEWOA7BJDMDCP3Q4NDAHANCNFSM4J4JWKBQ
.

Was this page helpful?
0 / 5 - 0 ratings