Tell me detail about new location manager
Generated on 8/7/2024
1 search
The new location manager updates were discussed in the session titled What’s new in location authorization. Here are the key details:
-
Introduction of CL Service Session:
- The CL Service Session is a new declarative way to manage location authorization. It allows you to specify what kind of location data your app needs for each feature while it is running.
- This approach simplifies the process of requesting location permissions and makes the code more robust.
-
Authorization Goals:
- The session explains how to move from a procedural model to a declarative one for interacting with location authorization.
- It covers the different states of location authorization, such as "not determined," "when in use," and "denied," and how users can choose to give full precision or approximate access.
-
Session Lifecycle:
- The lifecycle of a CL Service Session is discussed, including when to create one and what happens when the app is suspended or terminated.
- The session emphasizes the importance of layering service sessions for different app components to ensure each feature is self-sufficient.
-
Diagnostic Properties:
- A new system of diagnostic properties is introduced, which provides a complete contextual understanding of the current authorization state and the function of any other CoreLocation API objects.
- These properties help in understanding why certain updates or events might not be yielding the intended results.
-
Implicit Service Sessions:
- Modern CoreLocation APIs that provide async sequences will implicitly represent the goal authorization state of "when in use" while iterating.
- This means that in many cases, you can handle location authorization by simply iterating over live updates or monitor events, reducing the need for explicit authorization requests.
For more detailed information, you can watch the session What’s new in location authorization.
What’s new in location authorization
Location authorization is turning 2.0. Learn about new recommendations and techniques to get the authorization you need, and a new system of diagnostics that can let you know when an authorization goal can’t be met.
Dive deep into volumes and immersive spaces
Discover powerful new ways to customize volumes and immersive spaces in visionOS. Learn to fine-tune how volumes resize and respond to people moving around them. Make volumes and immersive spaces interact through the power of coordinate conversions. Find out how to make your app react when people adjust immersion with the Digital Crown, and use a surrounding effect to dynamically customize the passthrough tint in your immersive space experience.
Unlock the power of places with MapKit
Discover powerful new ways to integrate maps into your apps and websites with MapKit and MapKit JS. Learn how to save and reference unique places using Place ID. Check out improvements to search that make it more efficient to find relevant places. Get introduced to the new Place Card API that lets you display rich information about places so customers can explore destinations right in your app. And, we’ll show you quick ways to embed maps in your website with our simplified token provisioning and Web Embed API.