Results 1 to 8 of 8

Thread: sencha touch 2.1 and cordova 2.3.0; stuck on the loading screen on iOS based devices

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    68
    Answers
    3
    Vote Rating
    1
      1  

    Default Unanswered: sencha touch 2.1 and cordova 2.3.0; stuck on the loading screen on iOS based devices

    Hi,

    when I try to load my application on ipad/iphone browser I get stuck on the loading screen.

    No warning/error messages are issued. The Ext.application launch method is not called but the script is loaded.

    This happens only when cordova-2.3.0.js is included inside index.html.

    Can anybody else confirm this?

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    6
    Vote Rating
    1
      1  

    Default Experiencing the same.

    Not sure if this is helpful, but experiencing in the exact same issue on this end. Here's the error I'm receiving. Perhaps related to configuration, but no idea what's going on yet.

    TypeError: 'undefined' is not a function (evaluating 'cordova.require('cordova/exec').nativeEvalAndFetch(function(){cordova.fireDocumentEvent('resign');})')

    Using Safari web inspector to troubleshoot.

  3. #3
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Cluj, Romania
    Posts
    687
    Answers
    23
    Vote Rating
    50
      0  

    Default

    don't included it in index.html, but in app.json.
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

  4. #4
    Sencha User
    Join Date
    Aug 2011
    Posts
    36
    Answers
    4
    Vote Rating
    2
      0  

    Default Also having this problem

    Also having this problem. Posted a question on StackOverflow.

    The app will load in desktop browsers (at least Chrome and Safari for Mac). Also works in native (phonegap) wrapper.

    But all mobile browsers I've tried -- Mobile Safari (iOS 6 on iPhone and simulator), Chrome on iOS, browser on Android version 2.3 -- hang on the loading page, without launching the app. My cordova.js file is declared in app.json, not in index.html.

    One other note -- the Ext object is loaded (I think) fully, my app's namespace is loaded with all my views, controllers, models, and stores, but the app and config properties are not present.

    I'm using ST 2.1 and Cordova 2.3.0.

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    36
    Answers
    4
    Vote Rating
    2
      1  

    Default

    Removing cordova.js reference from app.json solved my problem. Strange, because earlier versions of cordova would load fine alongside ST 2 in mobile browsers. Also strange that it works in desktop browsers.

    Is there a way to automate this for different builds? Like package would include cordova.js but production would not?

  6. #6
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    9
    Vote Rating
    4
      0  

    Default

    Quote Originally Posted by bjudson View Post
    Is there a way to automate this for different builds? Like package would include cordova.js but production would not?
    We just using to different index files... One for Cordova build and one for web. You can configure this in cordova config file..

  7. #7
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montreal, Canada
    Posts
    254
    Answers
    2
    Vote Rating
    7
      0  

    Default

    I also had the same problem using Sencha Touch 2.4. It appears to be a problem with Ext.device.Devicehttp://www.sencha.com/forum/showthread.php?291083-Ext.device.device.Cordova-is-broken-in-ST-2.4-and-2.3.1&p=1063393

Posting Permissions

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