Reputation: 6144
This is my first question on Stack Overflow. Please be kind on my mistakes. I want to combine Sencha Touch 2 and Phonegap 2 for iOS in XCode.
Steps I took:
www
folder except cordova.2.0.0.js
.www
folder of the Phonegap project.index.html
will not include that and it has to be done this way. Please correct me if I'm wrong.]Result :
Sencha Touch 2 app runs fine when I run it from XCode. But the Phonegap script doesn't work. I put a simple Phonegap works alert inside html of main.js
.
html: [
"<script type='text/javascript'>",
"document.addEventListener('deviceready', function () {",
"alert('Our first PhoneGap app');",
"}, false);",
"</script>",
"You've just generated a new Sencha Touch 2 project. What you're looking at right now is the ",
"contents of <a target='_blank' href=\"app/view/Main.js\">app/view/Main.js</a> - edit that file ",
"and refresh to change what's rendered here."
].join("")
While the content shows, the script doesn't run. I tried this tutorial. But I believe it's old and doesn't cover Phonegap 2. Also I've seen Sencha built for iOS instead of Phonegap, that packs everything nicely. But I need Phonegap and its features.
Please help me with any updated tutorial, hints, code sample/download [not greedy, helpless].
Thanks all,
Prabhakar S
Upvotes: 0
Views: 1932