Forum Discussion

AndreyKlenin's avatar
AndreyKlenin
Honored Guest
2 months ago
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!

  • 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

  • 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

  • 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

→ Find helpful resources to begin your development journey in Getting Started

→ Get the latest information about HorizonOS development in News & Announcements.

→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.

→ Get support or provide help in Questions & Discussions.

→ Show off your work in What I’m Building to get feedback and find playtesters.

→ Looking for documentation?  Developer Docs

→ Looking for account support?  Support Center

→ Looking for the previous forum?  Forum Archive

→ Looking to join the Start program? Apply here.

 

Recent Discussions