ooo2003003v2 commented on issue #1749:
URL: 
https://github.com/apache/cordova-android/issues/1749#issuecomment-2487369204

   > I need to be fact checked on this but I think `menubutton` event only 
works on the older android devices that actually had a "menu" button (instead 
of the app switcher that we have now on modern android). I forget when exactly 
Android made the switch, but I want to say they replaced the menu with the app 
switcher (Also known as Recent Apps button) in Android 4.0 (API 14). Given that 
Cordova only supports API 24+ I think the `menubutton` event is completely 
obsolete.
   > 
   > The docs obviously haven't been updated to reflect this. But if it can be 
confirmed that I'm correct, then the docs should be updated.
   > 
   > > trying to add a privacy/splash screen to my app
   > 
   > To do this, you wouldn't listen for the `menubutton` anyway. You'd need a 
plugin (either by finding one, or [building 
one](https://cordova.apache.org/docs/en/12.x/guide/hybrid/plugins/index.html) 
yourself) to set the 
[FLAG_SECURE](https://developer.android.com/security/fraud-prevention/activities)
 window flag, which will hide your app's UI while in the app switcher view. 
This is common for apps that display's sensitive data in the UI.
   
   Is that means the corrent cordova implementation has no way to add an event 
listener to handling when the overview/recentApp button expect creating a plug 
in? 
   


-- 
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

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

Reply via email to