[Apple Vision Pro] Issue with startDeviceMotionUpdates in ImmersiveSpace Mode

Hello everyone,

I’m developing an app for Apple Vision Pro, and I’m trying to retrieve motion data updates aligned to magnetic north by using the following method:

startDeviceMotionUpdates(using: .xMagneticNorthZVertical, to: .main) { ... }

The goal is to get motion data oriented to magnetic north while an ImmersiveSpace() with an immersiveStyle set to .mixed is active. However, with this setup, I receive no updates at all.

If I switch to:

startDeviceMotionUpdates(using: .xArbitraryZVertical, to: .main) { ... }

or

startDeviceMotionUpdates(to: .main) { ... }

then I do receive data, but it’s not aligned as required (I specifically need .xMagneticNorthZVertical).

Has anyone experienced a similar issue, or does anyone know how to enable updates aligned to magnetic north in this configuration?

Thanks in advance for any insights!

SDK: VisionOS 2.0

Hi @antoniocastohdnx

Heading information is not available on visionOS. There's a similar post here. I did some digging and learned isMagnetometerActive is not supported on visionOS.

That said, the Core Location team welcomes your feedback. I encourage you to submit a feedback report with details of your needs and use case using Feedback Assistant (https://feedbackassistant.apple.com).

Important: For feedback related to CoreLocation framework, select "Developer Technologies & SDKs" as your Topic, then select the specific technology and visionOS.

[Apple Vision Pro] Issue with startDeviceMotionUpdates in ImmersiveSpace Mode
 
 
Q