18 Jun 2012 12:27 PM #1
Answered: How to start with Phonegap / Cordova?
i am new to sencha, but NOT new to Phonegap. Anyway, can someone point me to a working tutorial for Sencha Touch 2 with Phonegap/Cordova? The one mentioned at sencha.com isnt working any more (it was build for ST 1)
Thans a lot in advance!
Kind regards, itinance
Instead of editing index.html (if you are using Sencha Command it is not recommended) you could specify the cordova file in app.json. Here is a more step by step way of doing it http://robertdougan.com/posts/packag...onegap-cordova
20 Jun 2012 2:02 AM #2
If you're not new to Cordova, then this is a no-brainer for you. Just drop your app folder to your Cordova app in xcode, and build. Of course, you should remember to add the cordova's JS file into index.html
20 Jun 2012 5:44 AM #3
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Instead of editing index.html (if you are using Sencha Command it is not recommended) you could specify the cordova file in app.json. Here is a more step by step way of doing it http://robertdougan.com/posts/packag...onegap-cordovaMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.
21 Jun 2012 12:31 AM #4
21 Jun 2012 12:35 AM #5
21 Jun 2012 1:22 AM #6
21 Jun 2012 11:28 PM #7
the tutorial don't work clifficious.
DId you try to use Phonegap methods? like cordova.exec (phone gap 1.6 and above)?
i get all the time an error that i use cordova.exec before device ready event. I thought sencha touch did cathct it, but shouldn't works for android. On IOS all is fine, but on android i get this crash
Should i use Ext.Setub -> OnReady?
21 Jun 2012 11:59 PM #8
I'm sorry, I can't help you out here, as I used this method only for building the .app file as the SenchaArchitect native packaging function does not work for me. I haven't accessed any PhoneGap features yet. But maybe the author of the blog I linked might help you as he is in the process of writing a master thesis on comparing different architectures.
22 Jun 2012 12:37 AM #9
i contact him now, thx for your reply ;-)
22 Jun 2012 12:58 AM #10
... what should i say ... iam stupid
i used the cordova...js from iOS folder ... thats the problem ... (doh)