I am developing a Immersive Video App for VisionOs but I got a issue regarding app and video player window

In Vision OS app, We have two types of windows:

  1. Main App Window – This is the default window that launches when the app starts. It displays the video listings and other primary content.
  2. Immersive Space Window – This opens only when a user starts streaming or playing a video.

Issue: When entering the immersive space, the main app window remains visible in front of it unless manually closed. To avoid this, I currently close the main window when transitioning to immersive space and reopen it when exiting. However, this causes the app to restart instead of resuming from its previous state.

Desired Behavior:

I want the main app window to retain its state and seamlessly resume from where it was before entering immersive mode, rather than restarting.

Attempts & Challenges:

  • Tried managing opacity, visibility, and state preservation, but none worked as expected.
  • Couldn’t find a way to push the main window to the background while bringing the immersive space to the foreground.
  • Looking for a solution to keep the main window’s state intact while transitioning between immersive and normal modes.
I am developing a Immersive Video App for VisionOs but I got a issue regarding app and video player window
 
 
Q