facebook

Native App Updates

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #346873 Reply

    RichardOne
    Member

    Hi,

    That would be really helpful Cindy as like me, many are new to this stuff.

    There’s an assumption that ‘we’ all know ‘what’s what’ when placing code which of course is not the case.

    I’m still getting my head around making my demo app available to apple users! Have the demo sdk on my server but of course, no good to apple users.

    appreciate your time with this 😉

    #347385 Reply

    herb200mph
    Participant

    Cincy, All:

    Thanks for the code. We are deploying development apps for client testing and updating them, so the update feature will be helpful.

    We will experiment with the suggestions and post feedback here.

    I’m sure we will trip all over our feet trying to implement – but will yell for help if needed.

    #348206 Reply

    herb200mph
    Participant

    Cincy:

    My client might want to have the code to do the “look for latest version and install” feature for developer ad hoc apps.

    Can you get that working on your end and let us know how much you want for the code.

    Thanks.

    #348253 Reply

    Brandon
    Member

    @herb200mph
    It would really depend on what you need to update. You app would have to be specifically designed to use a external update at a later time. I dont think any generic code would be very effective.

    #348255 Reply

    herb200mph
    Participant

    The app has an opening page, and the entire app should update.

    We can put a marker or a code in the opening page to identify an update.

    There are 360 pages/screens in the app and actually, only 4 of them would update, and they are .htm pages opening as a popup (toolbar) – they are phone/email directory screens – the content likely to change.

    The app is complied into one master file.

    Would want the user to open their app on the device, and it checks for an update, then displays a button that says: An update is available, install now – or something along those line.

    Remember – these are development apps to specific UDID devices.

    #348258 Reply

    Brandon
    Member

    I would think for something like that, if I understand correctly, you would be good just to do something like this:

    @marcoevich wrote:

    Wow this is cool Cincy! A while back I was searching everywhere for simple example like this.. Way to go!


    @herb200mph
    , if you are not sure where to put this code, put it in the custom.js from your startup screen so it is always loaded.

    Then, attach an onClick handler to an update button so you can verify it’s working.

    The onclick handler can be as simple as calling your function: checkUpdates()

    Then, put Cincy’s code in a checkUpdates() function:

    function checkUpdates() {
        if (localStorage.getItem('myVersion') == null)//first run
        {localStorage.setItem('myVersion','1');}
        else
        {
        myVersion = localStorage.getItem('myVersion');
        $.ajax({
                    url: "yourserver.com/currentversion.txt",
                    async: false,
                    success: function (data){
                        if (myVersion < data){alert('you need to update');phoneui.gotoUrl(updateFileUrl);};
                    }
                });
        }
    }
    #349361 Reply

    herb200mph
    Participant

    This issue has raised it’s head again from the abyss.

    Cincy: Can you put together a tutorial on how to implement the update.

    The ideal would be to simple alert the user that the app was updated and a link/button to execute the app download action.

    We are not coders, so the more detailed the instructions, the better.

    Let me know what you need from us for this.

    Client might have a small budget for this implementation, so let us know the cost.

Viewing 7 posts - 16 through 22 (of 22 total)
Reply To: Native App Updates

You must be logged in to post in the forum log in