tschoffelen / react-native-check-version

🥕 Get the latest version of your app.
MIT License
192 stars 23 forks source link

Android error: [TypeError: Cannot convert null value to object] #61

Open frndsjoao opened 4 hours ago

frndsjoao commented 4 hours ago

Hi everyone.

I'm getting the following error when using Android: {"bundleId": "br.org.forluz.app", "country": "us", "error": [TypeError: Cannot convert null value to object], "lastChecked": "2024-10-10T22:17:47.315Z", "needsUpdate": false, "notes": "", "platform": "android", "url": null, "version": null}

my code:

    const options: CheckVersionOptions = {
      currentVersion: '2.4.12',
      platform: 'android'
    }
    const version = await checkVersion(options);
    // IOS WORKED
    console.log("Got version info:", version);

Link to the app on GP: https://play.google.com/store/apps/details?id=br.org.forluz.app&hl=en_US

I think it's an GP missing config, but I don't know what. This same code works on iOS.

Any help?

frndsjoao commented 4 hours ago

Also I realized that Version number in "About this app" is Varies with device. I think its something related to this, but I don't know how to fix it.