App Version Management:
This is used to keep every user app up to date or whatever new changes come in their application to inform them.
The issue faced in the version of the application:
If both users do not use the same application then the issue many bugs occur in a particular application :
- Data Exchange Problems
- Protocol Changes
- Feature Disparities: Missing Features, Deprecated Features
- User Experience Issues
- Communication Breakdown: deprecated API or plugins that can cause a bug
Solution:
From the backend (API or Any admin portal ) it should be determined which version is currently available. In the case of Flutter, we can determine for which platform which version to show forcefully update.
For example:
Get Sahil Jadhav’s stories in your inbox
Join Medium for free to get updates from this writer.
There will be an API from the backend that includes the following parameters:
- Application version: This version determines that our application currently which application is going and all users are using
- Android minimum version: This tells us up to which Android application version the forceful update should be available.Smaller than that version should get a notification or just a message on a particular screen by which it comes to know what are the updated changes.
- iOS minimum version: This tells us that up to which iOS build version the forceful update should be available.Smaller than that version should get a notification or just a message on a particular screen by which it comes to know what are the updated changes.
- Message: This message includes the upcoming changes and updated changes with descriptions so that users can understand it in a better way.
{
"applicationVersion":"1.0.0",
"androidMinimumVersion": 9 ,
"iOSMinimumVersion" : 11 ,
"message": "New update available".
}- In the above diagram first, it checks whether the current version matches the code hard-coded version in which the developer has stored static value if yes then it can log in further or any other routing. For this best way to use is gorouter in Flutter because this condition in gorouter is checked for every single routing.
- But if doesn’t match the condition above then next it checks whether this is applied in which Platform after identifying the platform it again checks the condition that the minimum version number that came from the server is greater than the current version.
- If it’s greater than the current version then it should redirect to the forceful update page by there is a button where on click it will redirect to playstore or app store.
- But if it’s less the current version then it should given to redirect. But in the notification section, there should be a notification that a new version is available with so and so changes.
Code :
Thank you 🙏…






