-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
needUpdate() does NOT work #209
Comments
The same problem with |
just use this to compare |
const res = await VersionCheck.needUpdate({
packageName: 'com.example' ,
}); This works great. |
It was working fine for me, and stopped suddenly since 7 days or so, the problem (at least in my case) that if you call needUpdate() without params, it returns {"currentVersion": "3.0.9", "isNeeded": false, "latestVersion": "3.0.9", "storeUrl": ""}, but if you call latestVersion() it returns 3.1.0, so to solve this problem just call the latestVersion() which returns a promise, and after resolving the promise call needUpdate() passing the result as a parameter. VersionCheck.getLatestVersion().then(lVersion =>
VersionCheck.needUpdate({provider: _your_provider_handler, latestVersion: lVersion})
.then(res =>
// handle the result
)) |
Resolve this issue by adding country
in my case im building app for US region and my location is India 🇮🇳 |
Thank you for the great library.
needUpdate
returns null. The other functions (getCurrentVersion
,getStoreUrl
,getLatestVersion
) work flawlessly.react-native-version-check Version:
3.4.7
react-native Version:
0.71.8
The text was updated successfully, but these errors were encountered: