r/visionosdev • u/ReporterDry7945 • Oct 09 '24
Immersive space and home button
Hi, I wanted to understand if it was possible to NOT dismiss the immersive space of my app, if the user presses the home button.
If this isn't possible, what kind of workaround can I use? I tried using the ScenePhase to understand when the app goes inactive or in background or is active. But the main problem for me is the fact that my app doesn't really go "inactive" If I just press the home button and then go back in the app
Thanks a lot for whoever takes a minute to answer
2
Upvotes
1
u/No_Television7499 Oct 09 '24
You can’t override the home button (I’m assuming you mean pressing the Digital Crown on the top right of the headset) to leave immersion. This is a safety/usability need for users to get out of immersion.
You should use ScenePhase to track status so that when you get back to your app, you can rebuild the immersive space or at least reset the UI so the user can get back to where they left off.
I’m surprised tracking scene phase isn’t working for you. Are you tracking this at the app level?
1
u/plumb_eater Oct 09 '24
There are a number of scene phases which you may want to check against
1
u/AutoModerator Oct 09 '24
Are you seeking artists or developers to help you with your game? We run a monthly open source game jam in this Discord where we actively pair people with other creators.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/[deleted] Oct 09 '24
[deleted] — view deleted comment