PhoneGap 2.9.0 Registered Events Not Firing
Hi I'm developing an app using Phonegap 2.9.0 and jQuery Mobile I know
title is some what miss leading but! My issue is when I have 2 events
registered to the document it takes twice as many button presses to get
those buttons to fire. For example when first pressing the back button
when the app initially loads it works fine. But if you try a second time
it take 2 buttons presses to fire the same event.
Rightnow I only have these events registered:
//Add listener to fire when device APIs are available
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
// Register the event listeners
document.addEventListener("backbutton", onBackKeyDown, false);
document.addEventListener("menubutton", onMenuKeyDown, false);
}
But when I take one of the events out of the equations(doesn't matter
which one) the callback fires every single time.
PS. I'm also testing this on a Android Device with 4.3.
No comments:
Post a Comment