02-21-2013 02:22 AM
I have creted a sencha touch2.0 based application that uses Salesforce. It is compatible with BlackBerry 7.0(Model : BlackBerry9810).
I am using BlackBerry WebWorks . Now due to certain reason(Like handling Back button and trap the Keyboard show/hide events) i need to add phonegap 2.4.0.js file.
When I am debuging application on my device then ondeviceReady event didn't get fire. So basically i am not able to use phonegap with this app.
02-21-2013 09:45 AM
Not sure if you've tried this already, but instead of ondeviceready, use document.ready(). This ensures your DOM is ready before the code is executed.
02-25-2013 07:28 PM
ST2 itself is checking for ondeviceReady, as long as you've included phonegap in your app.json, but you'll need to use Sencha cmd to package your app prior to packaging it with Webworks.
Check out this blog post by one of the brains behind ST2: