hyochan / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.hyo.dev
MIT License
2.83k stars 645 forks source link

Error Billing is unavailable. This may be a problem with your device, or the Play Store may be down. #2795

Open MariusCatanoiu opened 3 months ago

MariusCatanoiu commented 3 months ago

Hello. I get this error after upgrading from 12.10.4 to 12.15.1

Environment:

Error Billing is unavailable. This may be a problem with your device, or the Play Store may be down. 
    node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:105:59 promiseMethodWrapper
    node_modules/react-native-iap/src/eventEmitter.ts:62:37 purchaseUpdatedListener
    src/screens/main/RemotePurchaseModule.tsx:90:59 ?anon_0_
    (native) throw
    node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:23 asyncGeneratorStep
    node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:26 _throw
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1x3k484k/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16 tryCallOne
    /root/react-native/packages/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/1x3k484k/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27 anonymous
    (native) apply
    node_modules/react-native/Libraries/Core/Timers/JSTimers.js:247:22 anonymous
    node_modules/react-native/Libraries/Core/Timers/JSTimers.js:111:14 _callTimer
    node_modules/react-native/Libraries/Core/Timers/JSTimers.js:161:14 _callReactNativeMicrotasksPass
    node_modules/react-native/Libraries/Core/Timers/JSTimers.js:415:41 callReactNativeMicrotasks
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:392:41 __callReactNativeMicrotasks
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:132:38 anonymous
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:368:10 __guard
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:131:16 flushedQueue
    node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:127:28 invokeCallbackAndReturnFlushedQueue
MariusCatanoiu commented 3 months ago

I work withcom.google.gms:google-services:4.4.2, targetSdkVersion and compileSdkVersion 34

MoritzCooks commented 2 months ago

I face this issue once we uploaded the Android version to PlayStore review. One of the device names that triggers that error is called sdk_goog3_gpc_x86_64 which immediately appears after upload of the new version without the version being available through any track yet. So this has to be a Google bot which is installing and testing the app.

In addition I faced this issue once locally on my device that was not signed in Google PlayStore.

Hope this helps!

Moi6AP commented 1 month ago

Any solution?