Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
stream_builders
Reel Rookie

Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

We are testing a non-video Roku app that primarily displays live data with periodic updates. The app fetches and updates data dynamically without any user interaction for extended periods. However, despite this continuous data flow, the app unexpectedly exits after 4 to 5 hours, showing the following log message:
status=exit  exit code=EXIT_USER_NAV


Does anyone have any idea how to resolve this or understand what might be causing it? Any suggestions or workarounds would be greatly appreciated!

0 Kudos
1 Solution

Accepted Solutions
RokuBen
Community Moderator
Community Moderator

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

This is intentional.  If there is no user interaction, Roku OS will periodically return to the home screen as Roku OS devices are intended for consumer streaming use.  There is not a way for an application to prevent this closure.

View solution in original post

8 REPLIES 8
andyross
Roku Guru

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

This sounds like something best answered on the Roku developer forums:

https://community.roku.com/t5/Developers/ct-p/channel-developers 

0 Kudos
andyross
Roku Guru

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

Should add that Roku's have a bandwidth saver that is normally on by default. If there is no remote usage over 4 hours, it will shut the app down. (Settings/Network/bandwidth saver). I doubt if an app can override that.

RokuBen
Community Moderator
Community Moderator

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

This is intentional.  If there is no user interaction, Roku OS will periodically return to the home screen as Roku OS devices are intended for consumer streaming use.  There is not a way for an application to prevent this closure.

stream_builders
Reel Rookie

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

Thank you for the clarification. I understand that Roku OS is designed to return to the home screen after periods of inactivity. However, our app is a live data application (not a video streaming app), and it continuously updates the UI with new data.

Is there any official or recommended approach to ensure the app remains active for extended periods without requiring constant user interaction? For example, would periodic UI updates, background tasks, or specific API calls help prevent the automatic exit?

Any insights or best practices on handling this scenario would be greatly appreciated.

Thanks

0 Kudos
RokuBen
Community Moderator
Community Moderator

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

If the user isn't interacting, you could try to implement it as a screensaver app.

0 Kudos
Segundo
Channel Surfer

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

1000000841.jpg

 

0 Kudos
Segundo
Channel Surfer

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution

1000000837.png

 

0 Kudos
Segundo
Channel Surfer

Re: Roku App Exiting with EXIT_USER_NAV After Few Hours.

Jump to solution
  •  

1000000840.jpg

Allaico51@gmail.com 

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.