-
8 Feb 2012 1:45 AM #1
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
app.jsHTML 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>
I've read something about 'ondeviceready' etc, but those approaches are for ST1, isn't it?Code:Ext.setup({ viewport: { autoMaximize: false }, onReady: function() { console.log('ready'); var app = new Ext.Application({ console.log('new app'); }); } });
-
Best Answer Posted by mitchellsimoens
https://github.com/rdougan/barebones-phonegap
Rob Dougan (core dev on ST2 team) has this barebones PhoneGap and ST2 app on his github
-
8 Feb 2012 11:29 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3106
https://github.com/rdougan/barebones-phonegap
Rob Dougan (core dev on ST2 team) has this barebones PhoneGap and ST2 app on his githubMitchell 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.
-
9 Feb 2012 1:17 AM #3
Haha, first line: '<!-- BUG WITH BETA 1: you must remove this line to run in a normal browser. -->'...
Thanks for the link!


Reply With Quote