qonversion / react-native-sdk

React Native SDK for cross-platform in-app purchase and subscription infrastructure, revenue analytics, engagement automation, and integrations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS: [Error: UNKNOWN_ERROR] when fetching Qonversion.offerings()

pvshum opened this issue · comments

Hi There,
I am facing [Error: UNKNOWN_ERROR] when trying to fetch the products.

Any insights on how to debug or to get more meaningful output?

    try {
      const offerings = await Qonversion.offerings();
      console.log('offerings', offerings)
      if (offerings
        && offerings.main != null
        && offerings.main.products.length > 0) {
        // Display products for sale
        console.log('offerings', offerings)
      }
    } catch (e) {
      console.error(e)
    }

react-native info

System:
    OS: macOS 11.4
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 397.40 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.5 - ~/.nvm/versions/node/v14.15.5/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v14.15.5/bin/yarn
    npm: 6.14.11 - ~/.nvm/versions/node/v14.15.5/bin/npm
    Watchman: 2021.08.30.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.3
      System Images: android-29 | Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7042882
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_282 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.3 => 0.63.3
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
 "react-native-qonversion": "^3.1.1",

Hi, @pvshum
I've just tested offerings + products, and it works fine for me.
Could you please provide more info about your project (project name for example) so I can check your offerings and products configuration?
text me: s.sarkisyan@qonversion.io