When watching a video I get all of the state changes, however pressing the home button does not fire any state change. This should fire a stop event so that tasks can be run properly before channel exit!
I got around this actually by utilizing websockets. I am able to see when a client disconnects. Hope this helps someone!
It's been like that for a long time. Pressing Home is like pressing the reset button. You better be prepared for the rug getting pulled out from under you at any moment.
There should be some sort of "Pressed home run these tasks before exit" like any other OS...
Agreed, but when this behavior first appeared many years ago (it wasn't always that way) any discussion about what should happen fell on deaf ears.
I got around this actually by utilizing websockets. I am able to see when a client disconnects. Hope this helps someone!
This is very intentional by Roku and they've made it clear it isn't changing. The Home button is a nuke, and they are not allowing any app room to interfere, delay, or prevent it. You program is simply done, with no notice. It is to enforce a behavior the end user can rely on, that Home gets them back to the main menu, completely reliable, with no exceptions or surprises.