react native notify user for new version of app code example

Example 1: react native notify user for new version of app

You can check for the App Store / Play Store version of your app by using this library react-native-appstore-version-checker.


then create your logic base on the app version and then redirect to open app
store or update app

Example 2: react native notify user for new version of app

1

There is no configuration or automatic thing, but there are several ways that you can achieve this matter. one is using some sort of file in some server and put the version number in it like:

{
  version: "2.4"
}
and the address would be like https://example.com/version.json

and everytime the user open the application ( or whenever you like ) you check that file and compare it to the local version. if the server version is newer then you ask the user to update the application.

another way is use Push notification services like FCM. whenever the app have update you send all users the notification about the new update.

the second way advantage is you can inform users about the update even they don't open the app, altough they have to install the app in order the receive the notification.

the next approach is just publish your app in play store. whenever you publish the new update the play store will inform user about the new update and user can easily update their app.