kev l
kev l

Reputation: 13

Running settimeout in the background

Why doesn't settimeout/debounceTime work when the app is minimized? Events are still being triggered, but I was wondering if there is a way to make timers work while the app is backgrounded.

Upvotes: 0

Views: 323

Answers (1)

Manoj
Manoj

Reputation: 21908

As soon user leaves your app, the system will stop it from running to reduce battery usage.

If you like your app to execute in background, you must use the appropriate options in the desired platform (Background Task / Fetch in iOS | Background services in Android).

Upvotes: 1

Related Questions