ooo2003003v2 opened a new issue, #1749: URL: https://github.com/apache/cordova-android/issues/1749
Hello there, I'm trying to add a privacy/splash screen to my app when pressing the menu button (bottom bar), but nothing is triggered. I've tried both pause and resume, and they work fine and are logged in the console. So, what is the solution for the 'menu button'? ### index.js ``` var app = { // Application Constructor initialize: function () { document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); }, onDeviceReady: function () { this.receivedEvent('deviceready'); }, onPause: function () { console.log('onPause'); // Handle the pause event }, onResume: function () { console.log('onResume'); // Handle the resume event }, onMenuKeyDown: function () { console.log('onMenuKeyDown'); // Handle the menubutton event }, // Update DOM on a Received Event receivedEvent: function (id) { document.addEventListener('pause', this.onPause, false); document.addEventListener('resume', this.onResume, false); document.addEventListener('menubutton', this.onMenuKeyDown, false); }, }; app.initialize(); ``` ### Screenshot for console log  ### Screenshot for menu button(bottom bar)  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org