Results 1 to 2 of 2
  1.    #1  
    I don't notice this with really any applications for webos ..

    but I would like to implement in mine, a "check for updates" feature.

    getting the local version, going to the catalog and getting the latest version there.

    is there any way to do this?
  2. #2  
    Quote Originally Posted by iamthedood View Post
    I don't notice this with really any applications for webos ..

    but I would like to implement in mine, a "check for updates" feature.

    getting the local version, going to the catalog and getting the latest version there.

    is there any way to do this?
    The other devs do this by hosting a simple text file on their server with the latest version.

    It can be done 2 ways through that method:

    1) Text file and if version doesn't match, tell user a new version is available
    2) JSON file and if the version they're using is LESS THAN the version number on your site, then recommend an update

    Both work, but the second one ensures you don't get the notification if you're testing the app out. Another way to ensure you don't get it is to have a simple global (as in global throughout the app) variable for enabling/disabling dev mode of the app. Then you could use that to disable certain blocks, and even to decide whether or not to output the Mojo.Log.(*).
    Arthur Thornton

    Former webOS DevRel Engineer at Palm, HP, and LG
    Former webOS app developer (built Voice Memos, Sparrow, and several homebrew apps and patches)
    Former blogger for webOS Nation and webOS Roundup

Posting Permissions