CoreLocation data across multiple apps

Is it possible to acquire location data in your app when it is triggered by other apps in device? if so, How can I access it?

Answered by robnotyou in 704124022

Do you feel that this question has been answered, @Anish.Munirathinam?

Example: If google maps triggers location update, is there a way to read that location update in my app..

On iOS, it isn't the app that triggers the location update, it's the system.
The update is then passed on to any app that is listening for that update.

So in that sense, yes, if Google Maps receives a location update, your app can also receive it.

How can I access it?

You need to use the Core Location API exactly as documented. You don’t get any location data “for free” just because another app is using it (if I’m parsing the question correctly). What you may get “for free” is accuracy that’s better than you requested, if the device hardware happens to be generating improved accuracy on behalf of another app. But don’t rely on this behavior! Just request the accuracy you need.

(This feels like one of those questions where the right answer is “What are you actually trying to accomplish?”)

This feels like one of those questions where the right answer is “What are you actually trying to accomplish?”

My app collects location data using significant location changes, was just wondering If there are any APIs to get location update triggered by other apps in device like some shared location (so as to optimise and reduce the overall battery consumption).

significant location changes

When iOS detects that a significant location change has occurred, it passes that information on to all apps which have registered to use the "Significant-Change Location Service".

The location change is not "triggered" by any app.
It is detected by iOS, and passed on to the app(s), which can then "trigger" an action in the app(s).

See https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_significant-change_location_service

Accepted Answer

Do you feel that this question has been answered, @Anish.Munirathinam?

CoreLocation data across multiple apps
 
 
Q