Results 1 to 5 of 5

Thread: cordova15 and TC20 build works for iPad but not iPhone emulator

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    43
    Vote Rating
    0
      0  

    Default cordova15 and TC20 build works for iPad but not iPhone emulator

    We use Sencha Touch 2.0 to build our webapp and natively package with Cordova (phonegap) 1.5. When testing in iPad, it works fine. The same build and package deployed in iPhone emulator, it gives a blank screen. There is no error in the console. Could anyone share some thought on what could be wrong?
    My index.html has links remotely to scripts and css, for example, something like this:

    <!DOCTYPE html>
    <html>
    <head>
    <title>TESS Touch</title>
    <link rel="stylesheet"href="touch/sencha-touch.css"type="text/css">
    <link rel="stylesheet"href="http://localhost/sencha_native/resources/datepicker.css"type="text/css">
    <script type="text/javascript"src="touch/sencha-touch.js"></script>
    <script type="text/javascript"src="http://localhost/sencha_native/all-classes.js"></script>
    <script type="text/javascript"src="http://localhost/sencha_native/app.js"></script>
    <script type="text/javascript"src="http://localhost/sencha_native/common.js"></script>
    <link href="http://localhost/sencha_native/resources/app.css"rel="stylesheet"type="text/css">
    </head>
    <body>


    </body>
    </html>




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

    Default

    Are you including the cordova (phonegap.js) script?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    43
    Vote Rating
    0
      0  

    Default

    Cordova-1.5.0.js is under the folder www. When packaging, I guess iPhone emulator can access that. Another note is if I put "hello world" between the <body> tag, it shows up fine. So I don't get why iPad works but iPhone doesn't. They both use the same webkit engine, right?

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    43
    Vote Rating
    0
      0  

    Default

    Another test is: after putting cordova-1.5.0.js at the top of index.html. It still gives blank page for me.

  5. #5
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    I would use weinre to debug what is going on. Looking at the DOM tab to see if things are rendering or what is going on.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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