Firstly we can choose between two kinds of updates …
Immediate and Flexible
This update means we can not use our app while updating.
We can use our app while updating.
Also our app is updating from Google Play store - That means we can have some delay when we get the update from it (i got 24 hours delay).
And you must change minimal SDK version to 5.0
- add In-app Update component (in experimental)
As you can see u dont have to do nothing with settings… so move to the Blocks
- There we have all blocks for inapp update component
- I added button which we will check updates (from Goggle Play store)
- When we choose between two kinds of updates we must check the update first…
So when we click on the button we check the update from Google play… and if is available we download our update… and after download we install update too…
Also if is not available we can show message Ex.
I added Snackbar
Then if is not update available then we show the message
Second one is easier… just put in the Start immediate update
That should be all hope i helped Good luck!