19 Sep 2012 10:17 AM #1
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?
19 Sep 2012 8:04 PM #2
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.
1 Apr 2013 8:54 AM #3
7 Apr 2013 12:36 PM #4
Last edited by MT01; 7 Apr 2013 at 3:26 PM. Reason: Replied to the wrong thread.
7 Apr 2013 2:30 PM #5
All you problems will go away if...
sencha app build package
25 Jun 2013 7:26 PM #6
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).
29 Jun 2013 6:45 AM #7
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