Ondeviceready being fired twice, Cordova (Phonegap) 2.6/2.7, Enyo 2.2

edited May 2013 in Packaging Apps
This is bubbled up off IRC where sugardave said he didn't see this issue with the sampler and Cordova (phonegap) 2.6. (I had been using Phonegap 2.7) I bundled up the sampler and 2.6 and still saw the event fire twice. I wanted to post and see if perhaps my implementation is out of date.

Edit: Dave had to go deal with actual work, don't want to seem like I ignored him

We are not using the phonegap package from the extras as it seems that is now baked into enyo itself.


enyo.dispatcher.listen(document, "deviceready");
new App().renderInto(document.body);


name: "App",
kind: "FittableRows",
components [
{kind: "Signals", ondeviceready: "deviceReady" }
deviceReady: function() {
//Appears twice in the logs
//Using other calls like navigator.notification results in two as well
enyo.log("device ready");


Sign In or Register to comment.