Note that there are some explanatory texts on larger screens.

plurals
  1. POMy app hangs forever after attaching cordova-2.3.0.js
    text
    copied!<p>I made the following steps to use Phonegap library with my app:</p> <ol> <li>download phohegap-2.3.0 from <a href="http://phonegap.com/download/" rel="nofollow">http://phonegap.com/download/</a> </li> <li>copy cordova-2.3.0.js from phonegap-2.3.0/lib/android/ to the root directory of my <strong>sencha touch 2</strong> application</li> <li><p>add the following to <strong>app.json</strong> in the root directory of my sencha touch app:</p> <pre><code> { "path": "cordova-2.3.0.js", "update": "delta" }, </code></pre></li> </ol> <p>In the Chrome browser it works OK. But when I run the app on a real device (Android 2.3.0) it hangs forever on the first standart blinking screen.</p> <p>Does anyone know - <strong>have I made all required steps</strong> to install Phonegap or there are some more ones?</p> <p><strong>Update</strong></p> <p>I had generated an empty application and it did not work with attached cordova.js (when the object was before attached sencha-touch.js).</p> <p>It may be strange but the application loads normally when I place the strings with "cordova-...js" on the bottom of a "js" field (previously it was the first object in the "js" array):</p> <pre><code>"js": [ { "path": "touch/sencha-touch.js" }, { "path": "app.js", "bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */ "update": "delta" }, { "path": "cordova-2.2.0.js" } ]... </code></pre> <p>However I am not sure that PhoneGap works properly. I will test it and will publish my result.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload