react-native-version-check: NeedUpdate method for android not working
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?
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 16
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