1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    16
    Vote Rating
    1
    MT01 is on a distinguished road

      1  

    Default Unanswered: Sencha Touch 2 / Phonegap app does not update

    Unanswered: Sencha Touch 2 / Phonegap app does not update


    I have a Sencha Touch 2 app that I am packaging and deploying via Phonegap Build.

    My process is like this:

    - update the Sencha Touch app (sencha app build production)
    - push the new production app to phonegap build (via git)
    - build a new android APK
    - deploy the new APK in Google Play

    Android devices see the new version, and update themselves.

    Here's the problem:

    The OLD sencha touch app is still displayed on devices after they install the update from Google Play!

    Android devices will not display the NEW version of the sencha touch app until the user does a "clear data" in settings, or uninstalls and reinstalls the app.

    What am I doing wrong? Any ideas?

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    Just going out on a limb here, but do you access any persistent data or data from local storage on the devices that have the app? Is there any caching that is performed? I know with some applications I use: if there is an update on an app that saves user data (per login -- not saved games/etc) that data is reset upon restart.

    It's kinda hard to tell because only you really know how the application behaves, I'm assuming. I'm not exactly sure about this, but I hope this could maybe clear some things up.

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    12
    Vote Rating
    0
    anavio is on a distinguished road

      0  

    Default


    Same problem, MT01 have you a solution?

  4. #4
    Sencha User
    Join Date
    Jun 2012
    Posts
    16
    Vote Rating
    1
    MT01 is on a distinguished road

      0  

    Default


    No solution.
    Last edited by MT01; 7 Apr 2013 at 3:26 PM. Reason: Replied to the wrong thread.

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    164
    Answers
    13
    Vote Rating
    9
    in4p will become famous soon enough

      1  

    Default


    All you problems will go away if...
    you use
    sencha app build ​package

  6. #6
    Sencha User
    Join Date
    Jul 2012
    Posts
    15
    Vote Rating
    0
    hawkinbj is on a distinguished road

      0  

    Default


    edit: confirmed that sencha app build package fixes this.

    I had been using sencha app build package and using the same files on the web server (desktop access) and in the app store wrapped apps. This of course introduces deltas and an appcache file, which is why native apps do not update immediately (if at all).

  7. #7
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    497
    Answers
    25
    Vote Rating
    51
    shepsii has a spectacular aura about shepsii has a spectacular aura about shepsii has a spectacular aura about

      0  

    Default


    Production build is to handle updates. Don't confuse users and try to bypass Google Play's updating mechanism with this. Just use the package build and push new updates to Google Play as you need.

    If you did this on iTunes, you'd also be breaching their terms (by downloading new code).
    I blog about Sencha Touch at www.senchatouchdev.com