1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Dutch!
    Posts
    20
    Vote Rating
    0
    A387 is on a distinguished road

      0  

    Default Answered: ST2 and Phonegap

    Answered: ST2 and Phonegap


    Hi there guys, me again

    I recently upgraded to ST2 and now the integration with Phonegap seems to be broken. Helluuppp
    The window is white, nothing actually happens. No errors or whatsoever.

    This is what I try:

    index.html
    HTML Code:
    <script src="phonegap-1.3.0.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="lib/sencha/sencha-touch.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="theming/page.css"/>
    <script src="lib/sencha/sencha-touch-all.js" type="text/javascript"></script>
    <script type="text/javascript" src="app/app.js"></script>
    app.js
    Code:
    Ext.setup({
        viewport: {
            autoMaximize: false
        },
            
        onReady: function() {
            console.log('ready');
    
    
            var app = new Ext.Application({
                console.log('new app');
            });
        }
    });
    I've read something about 'ondeviceready' etc, but those approaches are for ST1, isn't it?

  2. https://github.com/rdougan/barebones-phonegap

    Rob Dougan (core dev on ST2 team) has this barebones PhoneGap and ST2 app on his github

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      1  

    Default


    https://github.com/rdougan/barebones-phonegap

    Rob Dougan (core dev on ST2 team) has this barebones PhoneGap and ST2 app on his github
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    Dutch!
    Posts
    20
    Vote Rating
    0
    A387 is on a distinguished road

      0  

    Default


    Haha, first line: '<!-- BUG WITH BETA 1: you must remove this line to run in a normal browser. -->'...

    Thanks for the link!

Tags for this Thread