How to delay/disable screensaver

Our app goes to the screensaver and may get backgrounded/closed after the system idle timeout (around 5 minutes), even when a video is paused.
When I return to the app after the screensaver, the app is restarted instead of resuming from the previous state.

I’d like to know the recommended way to keep the app alive and prevent the screensaver during a paused state (without continuous user input).

Is there an approved background or keep-awake mechanism/API for this on Vega/Kepler?

Thanks!

Hi @Dionisio,

Please try below and let us know if it helps.

Please note:

  • When app is in background, it could get terminated when system needs more resources.
  • The screensaver from Vega OS gets prevented only during media playback. In other idle activity scenarios, this screensaver would be displayed. This screensaver behaviour was intentional and it will later trigger low power mode. By default, screensaver starts in 5 minutes and low power mode starts in 15 minutes. User can change these defaults via Settings → Display & Sounds → Ambient Experience → Ambient Preferences → Advanced Settings. Apps cannot override screensaver & low power mode settings.

Regards,
Siva

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.