-
18 Jun 2012 12:27 PM #1
Answered: How to start with Phonegap / Cordova?
Answered: How to start with Phonegap / Cordova?
Hi
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
-
Best Answer Posted by mitchellsimoens
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 #2Sencha - Community Support Team
- Join Date
- Aug 2007
- Location
- Split, Croatia
- Posts
- 133
- Vote Rating
- 14
- Answers
- 9
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
Grgur Grisogono
Ext JS in Action SE co-author
Exercising awesomeness at Modus Create - Official Sencha Partner
Get in touch for Sencha Touch Training
@ggrgur
-
20 Jun 2012 5:44 AM #3Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
- Answers
- 3113
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
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.
-
21 Jun 2012 12:31 AM #4Sencha - Community Support Team
- Join Date
- Aug 2007
- Location
- Split, Croatia
- Posts
- 133
- Vote Rating
- 14
- Answers
- 9
+1 Mitch
Grgur Grisogono
Ext JS in Action SE co-author
Exercising awesomeness at Modus Create - Official Sencha Partner
Get in touch for Sencha Touch Training
@ggrgur
-
21 Jun 2012 12:35 AM #5
also here ist a great tutorial for ST2 and Phonegap to run on Android
http://andidog.de/blog/2012/06/packa...p-for-android/
-
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
Hi BörnR
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.
Good luck
-
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)


Reply With Quote
