Created
Jan ’22
Replies
6
Boosts
0
Views
696
Participants
3
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).
Do you feel that this question has been answered, @Anish.Munirathinam?