Any changes in CoreLocation?

Asked on 06/13/2025

1 search

At WWDC 2024, there were several updates to CoreLocation, particularly in the area of location authorization. The session titled "What’s new in location authorization" introduced a new declarative approach to handling location authorization using CL service sessions. This new system allows developers to define their authorization goals more clearly and simplifies the process of managing location permissions in Swift.

Key changes include:

  1. CL Service Session: A new way to declare your app's authorization needs. This allows CoreLocation to understand what your app requires and act accordingly, even if the app is suspended or terminated.

  2. Diagnostic Properties: These provide insights into why certain authorization goals cannot be met, helping developers understand and troubleshoot issues more effectively.

  3. Implicit and Explicit Sessions: Implicit sessions are created automatically when iterating live updates or monitoring events, but developers can also create explicit sessions for more control, especially when full accuracy or always authorization is needed.

  4. Lifecycle Management: The session lifecycle is tied to user-facing features, ensuring that location updates and events are managed efficiently as the app's state changes.

For more detailed information, you can refer to the session What’s new in location authorization (01:52) which covers authorization goals, and What’s new in location authorization (09:25) for session lifecycle.

Any changes in CoreLocation? | Ask WWDC