"E_IAP_NOT_AVAILABLE" when calling initConnection on react-native-iap
See original GitHub issueI am building a mobile app (React Native) that requires subscriptions to use. I will be using Apple/Google pay on the respective platforms. I would like to request subscriptions with the react-native-iap
library for React Native
I get the error “E_IAP_NOT_AVAILABLE” when calling the initConnection method from the react-native-iap library. I get this on both iOS and Android
My setup: expo@46
react@18
react-native@0.69.6
react-native-iap@12.3.2
I have tried downgrading react-native-iap to versions 8.0.1
and 7.0.3
(and reinstalling modules) with the same result.
I can’t seem to find any questions similar to this issue. Any ideas would be appreciated
Issue Analytics
- State:
- Created a year ago
- Comments:13
Top Results From Across the Web
Using hooks, getting Not initialized, Please call initConnection()
I got the same issue. With version of react-native-iap 7.5.0. Version of react-native 0.65.1. Error happen when call purchaseUpdateProduct = ...
Read more >React Native Android In App Purchase Error - Stack Overflow
On android Only - you need to open a connection to the billing service. This used to be RNIAP.prepare() , but it is...
Read more >How to use the react-native-iap.initConnection function in ...
To help you get started, we've selected a few react-native-iap.initConnection examples, based on popular ways it is used in public projects.
Read more >Implementing In-app Purchase In React Native - MindBowser
We saw a detailed explanation of In-App Purchase, type of In-App Purchase, working of In-App Purchase, the Prerequisites before implementing In-App purchase, ...
Read more >Announcing React Native IAP hooks | by Hyo - Medium
With useIAP hook, these are handled automatically. You do not have to call initConnection imperatively and calling useIAP() is enough for that.
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
and on android it throws this error when calling
clearProductsIOS
same thing was happening to me - after upgrading from version 6 - in my case the error was being thrown from calling
flushFailedPurchasesCachedAsPendingAndroid
on ios