Skip to main content
Participating Frequently
February 10, 2017
Question

AIR 25 tvOS - preventDefault() on Siri Menu Button event issues

  • February 10, 2017
  • 0 replies
  • 348 views

Hello,

I'm using preventDefault() for avoiding Siri Controller Menu button quit my app.

I want enable the default behavior in home screen, so nativeApplication.exit() does'nt work on iOS and tvOS.

This would be the the correct behavior as Apple tells in the user interaction documentation (User Interaction - tvOS Human Interface Guidelines 😞

"Pressing Menu at the top level of an app or game should always exit to the Apple TV Home screen".

I'm trying to control this with a contidional in the key event handler, preventing default behavior in the other screens, and the app exits only in home screen when menu button is pressed. Until here all ok.

But if I turn to the app again the menu button exits always in all screens because preventingDefault() in key event doesn't work any more.

This topic has been closed for replies.