1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    39
    Vote Rating
    0
    shanlin is on a distinguished road

      0  

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

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    827
    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


    Are you including the cordova (phonegap.js) script?
    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 Premium Member
    Join Date
    Mar 2012
    Posts
    39
    Vote Rating
    0
    shanlin is on a distinguished road

      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
    39
    Vote Rating
    0
    shanlin is on a distinguished road

      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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3462
    Vote Rating
    827
    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


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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."