"E_IAP_NOT_AVAILABLE" when calling initConnection on react-native-iap

See original GitHub issue

I 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

IMG_1225 Screenshot from 2022-10-31 00-01-20

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:closed
  • Created a year ago
  • Comments:13

github_iconTop GitHub Comments

2reactions
LorienHWcommented, Nov 3, 2022

and on android it throws this error when calling clearProductsIOS

2reactions
LorienHWcommented, Nov 3, 2022

same thing was happening to me - after upgrading from version 6 - in my case the error was being thrown from calling flushFailedPurchasesCachedAsPendingAndroid on ios

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found