Thursday, September 11, 2025
HomeiOS Developmenthold iOS React Native app energetic within the background (At the moment...

hold iOS React Native app energetic within the background (At the moment refreshing each 3-10 minutes)


So my group is presently working into a difficulty with our React Native app refreshing each 3-10 min whereas the telephone is locked or the app is in minimized. For extra context, that is health app that requires a element to run within the background persistently till it is marked full by the person (a exercise).

Our presently proposed options are the next:

  1. BackgroundFetching – We thought to have the app fetch one other element within the app each 9 min, 30 sec or so to maintain the app consistently “in use”

  2. HealthKit Integration – Feeding HealthKit with in progress exercise information from our app to maintain the standing “in use”

  3. Enabling location companies– Pinning person location each 10 min or so to once more hold standing “in use”

Has anybody else solved for the sort of difficulty earlier than? Ideas on our options? Thanks!

We’re presently utilizing react-native-background-timer library to aim to maintain the app working within the background however it’s nonetheless refreshing.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments