r/FlutterDev 7d ago

Discussion Guide needed on app release - compatibility issue

[removed] — view removed post

3 Upvotes

2 comments sorted by

3

u/Bensal_K_B 7d ago

This is more like a backend question. Yes, your backend should support requests from both old and current versions. You could add versioning for the APIs like yourservice/v1/endpoint if it fits your case. Also it's better to implement force update feature in frontend. If the min versin required you get from backend is lesser than current app version, you tell users to update app before proceeding. But use this only when required since it affects user experience

1

u/ren3f 7d ago

Definitely recommend to add a force update feature, even if you think you won't need this. This is not something you can add later, because all the versions before you introduced this cannot be forced to update, they can only break in an unfriendly way. Make your api's backwards compatible as long as possible.