The issue is going to be firmware updates. When the Roku is not the active input device this can happen. Say you leave the Roku on HDMI2. But on HDMI1 is your cable box. Go to the cable box and watch. The Roku knows HDMI2 is not being viewed. It will take liberties during this time to do housekeeping. If the Emby app is up and running during this all is fine. Until the Emby app gets an update or your firmware on your Roku gets an update. In case of an Emby app update this must close the app to let you know the updated app is ready to launch. Perhaps they should just launch the same app you were last in but they don't presently. After the app update it just puts your back on the Roku homescreen. In case of a firmware update the Roku will reboot/restart itself. Then it will wind up at the same Roku homescreen when you come back. The Roku does this housekeeping check when not the active input device once every 24 hours.
There isn't really anything we can or should do in this case. We could have the Roku app constantly send keypresses to itself every 10 minutes to keep itself from going into "update mode" but doing this will risk users not knowing updates are ready. They could be using an old outdated app/firmware on their Roku and they never leave Emby. This is bad and likely why Roku does this self updating process. For us to break that update process might risk our certification on the Roku store. They do not like apps doing things like this.
The reason the Roku has to be running Emby in order for remote control to work is because of user context. With YouTube it can launch into a guest account. There is no such thing as a guest account for Emby. You can't get on the app without logging in. On YouTube you can and use everything that guests have permission to use and then when you want to see more restricted content you actually login to your user to do so. This is how YouTube works. On Emby you have to login as you enter the app. There is no concept of a guest account. This is the difference.
Edited by speechles, 21 March 2019 - 10:45 AM.