What’s new in core location?

Generated on 8/10/2024

1 search

In the session titled "What’s new in location authorization" at WWDC 2024, several updates to Core Location were discussed:

  1. CL Service Session: A new declarative way to manage location authorization goals. It allows apps to specify what they need for each feature while running, simplifying the process of handling location permissions.

  2. Implicit Service Sessions: These are automatically created when iterating live updates or monitor events, which means you might be able to update your app to handle location authorization by simply deleting some code. This feature is enabled by default.

  3. Diagnostic Properties: A new system of diagnostic properties provides a complete contextual understanding of the current authorization state and the function of Core Location API objects. This helps in understanding why updates or events might not yield the intended results.

  4. Session Lifecycle: The session lifecycle is aligned with user-facing features, meaning they interact with the app's lifecycle. This allows for better management of features that depend on Core Location, such as geotagging or browsing a map.

  5. Authorization Goals: The session discusses moving from a procedural model to a declarative one for interacting with location authorization, making it easier to manage different authorization states and requests.

For more detailed information, you can refer to the session chapters, such as Authorization goals and Diagnostic properties.