How to handle app updates

How do we handle app updates? Lets say I release a 1.0 version, after that a 1.1, how is the update process done? Does the app saved data get deleted? Do we have to handle local sql database changes?

Currently when trying to install a new version on top of the old one, it fails because the app is already installed. This was tested on android.

Hi… I am going to guess that you’re using adb to install (aka side-load) the app on your testing Android device.

If so, simply do this:

adb install -r appname.apk  

This will install appname.apk on your device and overwrite an old copy if it exists.

Oh, and if you aren’t using ADB to side-load to your device, if you were actually talking about doing updates via Google Play or another Android store.  

That is handled for you.

If you already have a version of the game uploaded and live on Google Play, then you upload a new build, it will take a couple hours to go live on the store.  Then, folks who have it installed on their device already can simply update by going back to the store page and clicking the update button which will appear.

Lastly, don’t forget to advance the version code (not just the version name) every time you do a new upload to a store. 

The version code is what is looked at to determine if an app is newer or not.

(Don’t use the debug keystore either, you’ll need to generate your own keystore. )

vcode.jpg

Since user data is not deleted on updates, I know I have to take care of the database changes (for example, keeping a revision number to drop/create it again in case of database changes). Is there anything else I should take care about?

Hi… I am going to guess that you’re using adb to install (aka side-load) the app on your testing Android device.

If so, simply do this:

adb install -r appname.apk  

This will install appname.apk on your device and overwrite an old copy if it exists.

Oh, and if you aren’t using ADB to side-load to your device, if you were actually talking about doing updates via Google Play or another Android store.  

That is handled for you.

If you already have a version of the game uploaded and live on Google Play, then you upload a new build, it will take a couple hours to go live on the store.  Then, folks who have it installed on their device already can simply update by going back to the store page and clicking the update button which will appear.

Lastly, don’t forget to advance the version code (not just the version name) every time you do a new upload to a store. 

The version code is what is looked at to determine if an app is newer or not.

(Don’t use the debug keystore either, you’ll need to generate your own keystore. )

vcode.jpg

Since user data is not deleted on updates, I know I have to take care of the database changes (for example, keeping a revision number to drop/create it again in case of database changes). Is there anything else I should take care about?