Answer the question
In order to leave comments, you need to log in
How does the application client understand that the application needs to be updated?
In many client-server applications, after a new update, the old ones stop working correctly, so they are asked to update (display AlertView, as in Tinder, or throw them on the update screen, as in Yo).
I would like to play it safe and also introduce the ability to offer the user to upgrade if something is wrong in his version (for example, they introduced the sending of an application token in a new update - the old version crashes).
There was an idea to simply catch exceptions and display this alert in catch with a request to update. But this is most likely not a good practice.
I wanted to know how, in your opinion, existing applications could do this or how you do it.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
In the headers of the request to the server, send the version of the application.
Provide an error code on the server that is returned when the application is out of date.
Provide error handling on the client.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question