expo diagnostics and paste the log that’s printed out along with your question or issue:
Expo CLI 4.10.1 environment info: System: OS: macOS 11.5.1 Shell: 5.8 - /bin/zsh Binaries: Node: 16.8.0 - /opt/homebrew/bin/node npm: 7.21.0 - /opt/homebrew/bin/npm IDEs: Xcode: /undefined - /usr/bin/xcodebuild npmPackages: expo: ^42.0.0 => 42.0.3 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 react-navigation: ^4.4.4 => 4.4.4 npmGlobalPackages: expo-cli: 4.10.1 Expo Workflow: managed
I wanted to test my InAppPurchase on Android (works fine on IOS)
When I want to purchase the item (by scanning a QRCode), it returns me this warning :
[Unhandled promise rejection: Error: Must query item from store before calling purchase] at node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:103:50 in promiseMethodWrapper at node_modules/@unimodules/react-native-adapter/build/NativeModulesProxy.native.js:15:23 in moduleName.methodInfo.name at node_modules/expo-in-app-purchases/build/InAppPurchases.js:38:10 in purchaseItemAsync at node_modules/expo-in-app-purchases/build/InAppPurchases.js:34:7 in purchaseItemAsync at screens/QRCodeScreen.jsx:77:16 in axios.get.then$argument_0
Line 77 of QRCodeScreen is where I put my
My purchaseListener is set globally in my app.js.
And I have created a product to buy in the GooglePlayConsole.
Any ideas on what’s going on ?
Thanks for your time.