What’s new in corelocation framework?

Asked on 06/12/2025

1 search

In the session titled "What’s new in location authorization" at WWDC 2024, several updates to the CoreLocation framework were introduced:

  1. CL Service Session: A new declarative way to manage location authorization goals. This allows developers to specify what level of location access is needed for different features of their app, making the process more robust and simplifying the code.

  2. Diagnostic Properties: These provide a complete contextual understanding of the app's current authorization state and the function of CoreLocation API objects. They help developers understand why an authorization goal cannot be met.

  3. Implicit Service Sessions: When iterating live updates or monitor events, CoreLocation can treat these actions as implicitly holding a CL service session, which simplifies the handling of location authorization.

  4. Session Lifecycle: The session lifecycle is aligned with the app's lifecycle, ensuring that location services are managed efficiently even when the app is suspended or terminated.

  5. Authorization Goals: The framework has moved from a procedural model to a declarative one, allowing for more precise control over location authorization requests.

For more detailed information, you can refer to the session What’s new in location authorization (01:52) which covers authorization goals, and Diagnostic properties (13:29) for insights into the new diagnostic properties.