SudoPlz / sp-react-native-in-app-updates

An in-app updater for the native version of your react-native app.
MIT License
491 stars 66 forks source link

Testing library on emulator or TestFlight #95

Open vadim-tarasenko opened 2 years ago

vadim-tarasenko commented 2 years ago

In a documentation I see that the library make a decision about update availability depends on application version in the AppStore. Are there any ways to test this react-native-in-app-updates via TestFlight or even iOS emulator?

devWaleed commented 2 years ago

Some similar issue here, getting the following response in console

{"other": {"updateIsAvailable": false}, "reason": "Couldn    fetch the latest version", "shouldUpdate": false}
monireamini commented 2 years ago

If your app is available only in one country, the country field must be provided for the startUpdate and checkNeedsUpdate methods. By doing so, you can see the update alert on your ios device.