1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    44
    Vote Rating
    0
    jachenry is on a distinguished road

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    jachenry is on a distinguished road

      0  

    Default


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

Thread Participants: 1