const { responseCode, results } = await getProductsAsync(items); always empty

Please provide the following:

  1. SDK Version: 39
  2. Platforms(Android/iOS/web/all): IOS

On expo client I am trying to get products using

const { responseCode, results } = await getProductsAsync(items);

And products are in waiting for review state

I am stuck here cant publish working binary to IOS…

Please help

Expo CLI 4.0.8 environment info:
System:
OS: macOS 10.15.7
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.7.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.8 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
Android SDK:
API Levels: 23, 24, 25, 27, 28, 29
Build Tools: 26.0.1, 26.0.2, 28.0.2, 28.0.3, 29.0.0
System Images: android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5900203
Xcode: 12.2/12B45b - /usr/bin/xcodebuild
npmPackages:
@expo/webpack-config: ^0.12.16 => 0.12.44
expo: ^39.0.5 => 39.0.5
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-39.0.3.tar.gz => 0.63.2
react-native-web: ~0.13.7 => 0.13.18
react-navigation: ^4.4.0 => 4.4.3
npmGlobalPackages:
expo-cli: 4.0.8
Expo Workflow: managed

Hey @mitu, as the documentation states the InAppPurchases module is only available in the Bare workflow. https://docs.expo.io/versions/v39.0.0/sdk/in-app-purchases/ Trying to access this module in the client also wouldn’t work as it requires native configuration done at build-time.

Cheers,
Adam

Thank you so much.

I am working on Bare workflow but some other issues with me now :slight_smile:

While trying to build with xcode

Invariant Violation: “main” has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and ‘AppRegistry.registerComponent’ wasn’t called.

Cant continue… i am stuck thank you so much

Sorry, but I don’t understand something. @adamjnav. yes for testing i eject. But after test, I can continue by using the expo right?. I am asking cuz on the test flight application was crashed after ios:build with in-app purchase…

So we need really Expo support for an in-app purchase. Please it is important cuz Apple forces to use it. We don’t have any chance to use something other…
Please!!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.