Marek S
Marek S

Reputation: 51

WatchOS app running in background

How to keep apple watch app running in background. I build a timer, but every time screen dims and I wake up the app it resets the timer. How to avoid this?

Upvotes: 1

Views: 1003

Answers (1)

Peter P
Peter P

Reputation: 128

I don't think you're supposed to.

Apple specifically say:

  • Do not use background execution modes for a technology. Watch apps are considered foreground apps because they run only while the user interacts with one of their interfaces. As a result, the corresponding WatchKit extension cannot take advantage of most background execution modes to perform tasks.

You might want to check elapsed time on wakeup instead.

Upvotes: 1

Related Questions