purchaseUpdatedListener called only once on app start, and never calls after requestSubscription call
See original GitHub issueVersion of react-native-iap
4.4.6
Version of react-native
0.61.5
Platforms you faced the error (IOS or Android or both?)
ios
Expected behavior
purchaseUpdatedListener
called on each time, after requestSubscription
call
Actual behavior
purchaseUpdatedListener called only once on app start, and never calls after requestSubscription call
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
Just follow readme and try to request subscription
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:25 (4 by maintainers)
Top Results From Across the Web
dooboolab/react-native-iap (Raised $40.00) - Issuehunt
purchaseUpdatedListener called only once on app start, and never calls after requestSubscription call. Unfunded#985created byStrate.
Read more >Newest 'react-native-iap' Questions - Stack Overflow
I am using react-native-iap V8.1.1 and react-native V0.65.1 After calling requestSubscription method The log will be like "iap data: true" but as it...
Read more >react-native-iap - npm
This is a react-native link library project for in-app purchase for both Android and iOS platforms. The goal for this project is to...
Read more >React Native IAP - Javatpoint
The react-native module will help us access the phone's in-app purchase ... Not calling this method will cause other calls to be rejected...
Read more >Purchases - React Native IAP
Once you have called getProducts() , and have a valid response, you can call ... that you start listening to updates as soon...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Had the same issue as I didn’t add the
initConnection()
call. The README seems to be just updated with the bold part here:I think this part “On iOS, it will simply call canMakePayments” should be removed, also
initConnection()
should be added to the basic exampleI was really convinced it was optional because it wasn’t in the example
Adding the
initConnection()
before registering the purchase listener/s fixed this for me, so this is probably related to #1002 and #756I had the same issue for a few days with RN 0.62.2 and react-native-iap 4.4.8 I somehow missed the
initConnection()
probably because it is missing from the example in the README