question

Amadeus avatar image
Amadeus asked

App fails to lose audio focus when the device enters dream state

I have received rejection with the reason: "App fails to lose audio focus when the device enters dream state". The problem is when the screensaver shows up on the screen my app onPause isn't triggered and the game is clearly working in the background because Fire TV failed to pause it. How could I detect the enigmatic dream state then so I can stop the music?
fire tvsubmission testing distribution
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amadeus avatar image
Amadeus answered
I have found the solution. We need to override onWindowFocusChanged(hasFocus). Shame it wasn't mentioned anywhere in the documentation. :|
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Amadeus, I will share your experience with internal appropriate team. Thanks for taking time to post the solution,
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.