Visits to iOS and System Services Frequent Hosting

I noticed that frequent location on iPhone seems to consume much less battery than when monitoring iOS apps ( https://developer.apple.com/reference/corelocation/clvisit ).

You can view the frequent location on iPhone on your phone through Settings → Privacy → Location Services → System Services → Frequent Locations.

I would like to know if CLLocationManager’s visit monitoring service is the same as iOS, or if it’s on a different system used by Apple. If Apple uses the same service, why doesn’t it affect the battery?

+4
source share
1 answer

The two APIs are for different purposes.

CLLocationManager API

This API is designed to inform your application of a location based on the requirements specified by your application. You can choose some specific conditions when your application receives location data and your application continues to receive this data until it is no longer desired. Consider, for example, the Uber app will ask for location data when you open the app so you can plan your trip, and will continue to request it as your trip approaches.

Frequent Locations / CLVisit API

Frequent Locations , . , , , , iOS . , , . StarBucks, StarBucks, , . , "" /, .

- , API, . CLLocationManager . GPS , Wi-Fi.

CLVisit ( ) . - iOS - , , , . , Wi-Fi. GPS . Wi-Fi " ", .

Wi-Fi, , ?

, Wi-Fi-, . , , . Google , ? - security.stackexchange.com

+3

Source: https://habr.com/ru/post/1663222/


All Articles