VersionCheck.needUpdate() returns undefined in IOS
See original GitHub issueThis is the code I’m using
VersionCheck.needUpdate().then(res => {
console.log("res version check >>>>>> ", res); // undefined on iOS
if (res.isNeeded) {
this.setState({
showNewVersionModal: true
});
}
});
it works fine on Android
but on iOS
it returns undefined
Version: “react-native-version-check”: “^3.3.0”, “react-native”: “^0.57.8”,
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:15
Top Results From Across the Web
VersionCheck.needUpdate() returning undefined in ios
VersionCheck .needUpdate() .then(res => { console.log('needUpdate: ', res); }. res is returning undefined in ios.
Read more >react native version check package make app crash
needUpdate() .then(async res => { console.log(res. ... version "react-native-version-check": "^3.4.3", is up to date documentation link: ...
Read more >react-native-version-check - npm
A version checker for react-native applications. Latest version: 3.4.3, last published: 6 months ago. Start using react-native-version-check ...
Read more >Get latest available version for user appstore and play market ...
import VersionCheck from 'react-native-version-check'; import {Linking } from 'react-native'; versioncontrol = async () =>{ VersionCheck.needUpdate() ...
Read more >Top 5 react-native-version-check Code Examples - Snyk
Learn more about how to use react-native-version-check, based on react-native-version-check code examples created from the most popular ways it is used in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I installed this package with autolinking but this problem still exist.
You can check your app url in browser, maybe they has a specific country code. you can add params for country code like this
VersionCheck.needUpdate({country: <your-country-code>})
This works for me