Currently, I am in the process of debugging my PhoneGap app using Weinre and facing some persistent errors...
The 'deviceready' event has not fired even after 5 seconds.
Channels are not firing: onPluginsReady, onCordovaReady, onCordovaConnectionReady.
I have incorporated the barcodescanner plugin and am compiling with the remote service provided by the PhoneGap website. Using PhoneGap 3.2 on android version 2.3.
this.initialize = function(){
this.bindEvents();
};
this.bindEvents = function(){
console.log('binding events...');
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
};
this.onDeviceReady(){
...
};
The initialize function is invoked during the body onload event.