Issue
How can we configure react-native to notify user about the new app release.
Solution
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.
Answered By - M.R.Safari
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.