Hybrid View

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    32
    Vote Rating
    1
    Fonx is on a distinguished road

      0  

    Default Incompatibilty Sencha 2.1 - Cordova 2

    Incompatibilty Sencha 2.1 - Cordova 2


    I have found that the new Sencha 2.1 update is incompatible with Cordova 2.0. Can't give much more info: The same app with Sencha 2.0 works with the Cordova library while, if update to 2.1, it stops working (white screen after launch image). So the situation is the following:

    Sencha 2.0 + Cordova 2.0 works but ios6 bug
    Sencha 2.1 + Cordova 2.0 ios6 bug fixed but doesn't work

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    872
    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


    Did you use a remote debugger to see if there are any errors being thrown?
    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
    Mar 2012
    Posts
    32
    Vote Rating
    1
    Fonx is on a distinguished road

      0  

    Default


    Hi again mitchellsimoens, not quite sure what remote debugger can I use (any suggestion will be much appreciated). What I have discovered by running the app in the safari browser is this message:

    Code:
    [WARN][Ext.data.reader.Reader#process]
    sencha-touch-all-debug-2.1.js:102614[WARN][Ext.data.reader.Reader#process] Unable to parse the JSON returned by the server: 
     SyntaxError: JSON Parse error: Unrecognized token '/'

    And the las portion of code I think it is executing is:
    Code:
     Ext.getStore('gameDataSt').load({     
           callback: cargaBasesDeDatos,  
             scope: this
        });
    Indeed it is something relate to the store loading. If I change the path to the store and I set an erroneous one, I get the the program to continue its executing, what has change in relation to sencha 2.0 ?

    My store definition is:

    Code:
    Ext.define('LG_Menu.store.gameDataSt', {
        extend  : 'Ext.data.Store',
      
      config:{ 
                                   model: 'LG_Menu.model.gameDataMdl',
                                   autoLoad: true,  
                    proxy: {
                       type: 'ajax',
                       url : './data/gameData.json',
                       reader: {
                         type: 'json',
                         rootProperty: 'gameDBData'
                       }
                  }
               }
    });
    Last edited by Fonx; 12 Oct 2012 at 12:17 AM. Reason: add more info

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    872
    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


    So that would tell me the JSON being returned is not proper JSON and isn't able to be decoded
    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.

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    32
    Vote Rating
    1
    Fonx is on a distinguished road

      0  

    Default


    The error related to the .json was because there was a //comment in the file ¿¿¿¿ is this normal ???? It does work with previous versions.

    Anyway, it is still not working (white screen) . Following tricks from the forum users I have come to find that it doesn't find the Dom.js file. ??? Any help ?

    Thanks

    So, the situation is the following.

    Cordova 2.0 - Sencha 2.0 Works !!
    Cordova 2.0 - Sencha 2.1 (rc1 and rc2) Doesn't works

    OS X 10.8.2
    XCode 4.5.1
    App works in web browser

    Errors:
    White screen after the launch images.
    - Doesn't find the /Dom.js file.

    Please note that this didn't fix the problem:

    Code:
    Ext.Loader.setConfig({
    enabled: true,
    disableCaching: false
    });
    Last edited by Fonx; 15 Oct 2012 at 10:44 AM. Reason: add more info

  6. #6
    Sencha User
    Join Date
    Mar 2007
    Posts
    416
    Vote Rating
    18
    jweber will become famous soon enough

      0  

    Default


    For what it's worth, I've managed to get ST2.1rc2 to run under PhoneGap/Cordova 2.1, without any problems related to the combination of the two.

    (There were plenty of problems with both upgrades individually. I'd recommend starting from the template app that each platform generates, and seeing where your app differs. Also make sure you test the Sencha app using its "production" build.)