Results 1 to 3 of 3

Thread: XCode4 + Phonegap + Sencha Touch

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    44
    Vote Rating
    0
      0  

    Default 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.

    Code:
        "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"
            }
        ],
    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-build

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,412
    Vote Rating
    1288
      0  

    Default

    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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    44
    Vote Rating
    0
      0  

    Default

    Code:
    sencha app build package
    did the trick. Thanks Mitchell.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •