Skip to main content
AndreyKlenin
New Participant
October 3, 2025
Solved

XR_SESSION_STATE_FOCUSED is not triggered

Hello!

I have the following problem. In an application running on a Meta Quest 2 headset, when opening system menus (such as Resume/Quit by pressing the "o" key or opening InApp windows), the HandleSessionStateChangedEvent: state XR_SESSION_STATE_FOCUSED->XR_SESSION_STATE_VISIBLE event is triggered. However, when system menu closing and returning to the application, the OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_VISIBLE->XR_SESSION_STATE_FOCUSED event no longer triggers. As a result, hand tracking stops working.  I'm using latest OpenXR library in Unity3D.

Best regards!

AndreyKlenin
New Participant
October 7, 2025

Hello, G!

Thank you for your willingness to help! Fortunately, I was able to resolve the issue—it turned out it was caused by a conflict with the ad system's SDK.

Best regards,

Andrey Klenin

2 replies

Meta Employee
October 3, 2025

Hey AndreyKlenin!

Sorry to hear that you're having trouble getting hand tracking working in your app, I get how that could be irritating. 

Could you please let me know which versions of the Unity OpenXR Plugin, Meta XR Core SDK, and Quest OS you're currently using/on? If either of those are not updated to the latest version, I'd suggest you try updating and see if the problem continues to persist. You can also try manually resetting hand tracking when your app regains focus. You can read more about this in our official hand tracking documentation. 

If all else fails, please feel free to let me know and we can troubleshoot further!

-G

AndreyKlenin
AndreyKleninAuthorAnswer
New Participant
October 7, 2025

Hello, G!

Thank you for your willingness to help! Fortunately, I was able to resolve the issue—it turned out it was caused by a conflict with the ad system's SDK.

Best regards,

Andrey Klenin