Is continuous background GPS tracing during device idle allowed?

We want to implement continuous GPS tracking in a React Native iOS app for security purposes.

We need the tracing in the following case scenarios:

  • App is Terminated
  • App is minimised (Not killed)
  • App is open and device is put to sleep mode #Locked
  • App is in minimised and device is put to sleep mode #Locked (sleep mode)

Currently it works in following 2 scenarios:

  • Working when the app open in foreground
  • Works when the app is killed (Traces in background)

We would like to understand:

  1. Is continuous background location tracking during device idle allowed in iOS ?
  2. If allowed, what is the recommended approach to ensure reliable tracking?
  3. Are there any specific configurations, permissions, or limitations (battery optimization, system restrictions) we should be aware of?

We are using React-Native by transistersoft with background location updates enabled and required permissions configured.

This use case is specifically for user safety and security tracking.

Any guidance on best practices and platform limitations would be helpful.

We can't help you with the React part and we wouldn't know what this library you are using is doing, but this is possible by using the CoreLocation API CLBackgroundActivitySession

The article Handling location updates in the background explains how to accomplish this.

Translating this to React Native, or finding a library that uses this API correctly so location tracing works in all those conditions would be up to you.

Is continuous background GPS tracing during device idle allowed?
 
 
Q