question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NeedUpdate method for android not working

See original GitHub issue

The below function not working, getting an empty response while I am checking on Android but it works for iOS.

VersionCheck.needUpdate()
  .then(async res => {
    console.log(res.isNeeded);    // true
    if (res.isNeeded) {}
});

I am using the latest version of this library.

react-native: 0.63.2 react-native-version-check: 3.4.2

Can anyone have any fix for this issue?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16

github_iconTop GitHub Comments

2reactions
ericklemuscommented, Sep 23, 2021

Hi, i have the same problem, when i call VersionCheck.getLatestVersion() the app crash. I also saw in console [TypeError: Network request failed].

After some research i found the error thrown: NoSuchMethodError: No virtual method toString(Z)Ljava/lang/String; in class Lokhttp3/Cookie; or its super classes

0reactions
bodriuscommented, Sep 2, 2022

same problem, how fix it??

Read more comments on GitHub >

github_iconTop Results From Across the Web

NeedUpdate method for android not working - - Bountysource
The below function not working, getting an empty response while I am checking on Android but it works for iOS. VersionCheck.needUpdate() ...
Read more >
Issues · kimxogus/react-native-version-check - GitHub
In IOS getLatestVersion is not working. #104 opened on Dec 26, ... Android getLatestVersion() not working ... NeedUpdate method for android not working....
Read more >
Fix an installed Android app that isn't working - Google Support
Fix an installed Android app that isn't working · Step 1: Restart & update · Step 2: Check for a larger app issue....
Read more >
room update (or insert if not exist) rows and return count ...
A method, annotated with @Insert can return a long . ... You should use Rx Android Single to solve this problem. Example:
Read more >
Google Pay not working in Android 11 - OnePlus Community
I'm tempted to downgrade to Android 10 since I use my phone for contactless payments almost every day. @D1531916680452 said: I found the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found