-
20 May 2012 1:26 PM #1
XCode4 + Phonegap + Sencha Touch
XCode4 + Phonegap + Sencha Touch
I'm developing a phonegap (1.6.1) app with sencha touch (2.0.1) and have an issue where my javascript changes can not be seen in the app when running in the ios simulator. The only way I can get the app to update is by deleting it from the simulator and relaunching. Is it possible this is caused by sencha's caching strategy? Here is the js portion of my app.json.
Other phonegap users are seeing the same thing within xcode4 (http://stackoverflow.com/questions/6...101636#7101636). I tried all the solutions in that post and still cannot get the javascript to update properly. I've posted another on stackoverflow to get help http://stackoverflow.com/questions/1...-js-upon-buildCode:"js": [ { "path": "resources/js/cordova-1.6.1.js" }, { "path": "sdk/sencha-touch-all.js", }, { "path": "lib/deft.js", }, { "path": "app.js", "bundle": true, "update": "full" } ],
-
22 May 2012 5:03 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
If you build your app with sencha app build package then it will not cache your app to localstorage. Say you are in production, the way to update a native app is via uploading a new version to the app stores where the users will then download the updated app from.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
22 May 2012 5:39 PM #3
did the trick. Thanks Mitchell.Code:sencha app build package


Reply With Quote