What are Core Location updates ?

Generated on 8/5/2024

1 search

Core Location updates were discussed in the session titled "What’s new in location authorization" at WWDC 2024. Here are the key updates:

  1. CLLocationUpdate and CLMonitor: These two new API objects were introduced last year. They present an async sequence interface that makes it easy to get latitude and longitude updates whenever the device moves or state change events whenever spatial conditions you describe become satisfied or unsatisfied. (What’s new in location authorization)

  2. CL Service Session: This is a new declarative way to tell Core Location your authorization goals for each feature of your app while it is running. It helps manage the lifecycle of location services, especially when the app is suspended or terminated. (What’s new in location authorization)

  3. Diagnostic Properties: New diagnostic properties have been added to provide a complete contextual understanding of the current authorization and the function of any other Core Location API objects. For example, CLLocationUpdate now includes properties like accuracyLimited and locationUnavailable to explain why updates might not arrive. (What’s new in location authorization)

  4. Implicit and Explicit Sessions: Core Location can treat the act of iterating live updates or monitor events as implicitly holding a CL service session. This means you may be able to update your app to handle Core Location authorization with service sessions just by deleting code. (What’s new in location authorization)

  5. Authorization Goals: The session also covers how to set authorization goals using the new CL service session struct, making it easier to manage location permissions in your app. (What’s new in location authorization)

For more detailed information, you can watch the session What’s new in location authorization.