How to force an app update?

I want my app to check it’s version number vs the latest version available.

How would I go about doing that?

Thanks!

Hi @gullie667,

Perhaps use “system.getInfo()” with a key of “appVersionString”…

http://docs.coronalabs.com/daily/api/library/system/getInfo.html#appversionstring

Brent

Yes, but how do you check it vs the current app store version?

IE, the app is in the wild and I want to force users to d/l the latest version if their version is outdated…

I am not sure what direction to go in or start digging around in…

I actually use amazon s3 for this, i just put a json file out there with the version number and download it when the app opens (if they have an connection) and then if the version is > than the current version display a dialog with a link to google play for upgrade.

you can use amazons s3 free service for this with a json file that small you will never go over the limit unless you have massive amounts of traffic and even then it will only be a couple bucks at most.

Thank’s for the response!

One more question…

Does Google offer a similar service? Why did you choose s3?

np, S3 is just a personal preference, I have tried other services and find that S3 just beats all of them hands down :slight_smile:

You could use Google Drive, MS Azure, your own web server etc. and so forth.you just need a remote location to be able to check the current version, and if you are planning to make cross platform then make a version for each because of the time difference in approvals between google and apple at some point you will find yourself out of sync.

Ah… good call about the android / ios versions.

Thanks for the info!

Hi @gullie667,

Perhaps use “system.getInfo()” with a key of “appVersionString”…

http://docs.coronalabs.com/daily/api/library/system/getInfo.html#appversionstring

Brent

Yes, but how do you check it vs the current app store version?

IE, the app is in the wild and I want to force users to d/l the latest version if their version is outdated…

I am not sure what direction to go in or start digging around in…

I actually use amazon s3 for this, i just put a json file out there with the version number and download it when the app opens (if they have an connection) and then if the version is > than the current version display a dialog with a link to google play for upgrade.

you can use amazons s3 free service for this with a json file that small you will never go over the limit unless you have massive amounts of traffic and even then it will only be a couple bucks at most.

Thank’s for the response!

One more question…

Does Google offer a similar service? Why did you choose s3?

np, S3 is just a personal preference, I have tried other services and find that S3 just beats all of them hands down :slight_smile:

You could use Google Drive, MS Azure, your own web server etc. and so forth.you just need a remote location to be able to check the current version, and if you are planning to make cross platform then make a version for each because of the time difference in approvals between google and apple at some point you will find yourself out of sync.

Ah… good call about the android / ios versions.

Thanks for the info!