Running a stopwatch in the background

Please provide the following:

  1. SDK Version: 39
  2. Platforms(Android/iOS/web/all): Android/iOS

I’m working on an expo app that implements a stopwatch feature using setInterval and some React state for the number of seconds. I was wondering if I could continue to increment my stopwatch while the app is backgrounded. It seems however that BackgroundFetch can only run tasks every 15 minutes and those intervals aren’t even exact?

I might just switch a timestamp based stopwatch to work around this but I wanted to confirm that my implementation isn’t supported.

you are correct in your understanding. timestamps are the way to go for this

1 Like

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