javascript - Cordova Android Back button event doesnt fire -


it doesn't fire! tried everything. funny thing menu button works fine:

//... //if (isdevice) {     document.addeventlistener("deviceready", ondeviceready, false); //} //... function ondeviceready() {     document.addeventlistener("backbutton", onbackkeydown, false);     document.addeventlistener("menubutton", onmenukeydown, false);     //document.addeventlistener("searchbutton", onmenukeydown, false); } function onbackkeydown() {     alert('doesnt work!'); } function onmenukeydown() {     alert('works fine!'); } 

and although i'm in doubt believe working earlier week! :/ idea what's going on? bug? appreciate in advance, thx, mim


cordova -v: 4.3.0

tested on: android 4.2.2

updating cordova, android sdk , build tools resolved problem completely! guess way cordova build works bit messy! looks pulls repositories everytime regardless of compatibility other dependencies (even own version)

although problem (and issue relating opening google play store links google play store app , not browser or in-app browser) solved again, updating introduced new , weird problem! cant ajax calls! idea?!

ps:

just record, after update have remove , add android platform otherwise you'll lot of bizarre build fails! :))

ps2

now back btn works, menu button not trigger event! confused! :/


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -