Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8469603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:16:26+00:00 2026-06-10T16:16:26+00:00

This is my first question on Stack Overflow. Please be kind on my mistakes.

  • 0

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:

  1. Created a Phonegap project for iOS.
  2. Created a Sencha Touch 2 project separately.
  3. Removed all the contents inside the www folder except cordova.2.0.0.js.
  4. Copied the entire Sencha Touch 2 project contents and put it in the www folder of the Phonegap project.
  5. Added cordova js to app.json path. [somebody told me that including that in 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:16:28+00:00Added an answer on June 10, 2026 at 4:16 pm

    You need to include cordova.js in your index.html file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is a first question on stack overflow, so please be patient. I have
I'm an XML Schema noob, and this is my first Stack Overflow question. Please
This is my first question in stack overflow. Please be liberal in validating it
This is my first question on Stack Overflow, so I hope that I'm clear
this is my first question on stack overflow. Some quick background, this is not
( Preface: This is my first audio-related question on Stack Overflow, so I'll try
First off - hello, this is my first Stack Overflow question so I'll try
This is my first question here on stack overflow. i need help on a
This is my first post to Stack Overflow so please forgive me if I
Hello all this is my first question on stack overflow. I am developing an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.