I'm developing an app for Rift and Quest. Works great on Quest, but on the Rift when I hit the Oculus button and select "Quit App" the HMD goes to the menu, but the app continues to run in the background with full tracking, everything. I have to switch to the PC and ALT+F4 to close it. Is there a callback I have to implement to manually handle this situation?
For reference, this is a build that has been uploaded to the dashboard and downloaded through a BETA channel.
Unity 2019.4.3f1, using Oculus XR Plugin (not full integration)
hmm, that works fine for us. As far as I know, when you say "Quit App" within oculus, it should do the same exact thing as you pressing the "x" button in the corner. Is that not happening? Have you checked the logs..perhaps there is some OnApplicationQuit / shutdown that's failing.
Sorry I didn't get notified of the reply. So quick update that it seems to be a known issue with the Unity XR plugin: the forum won't let me post the link but it's the Unity Manual for the Oculus XR Plugin v0.8 I'm actually on plugin v1.4.3 but it's still happening along with a couple other issues on that known issues list.
Solved it (sort of). OVRManager events do not fire unless you have an instance of OVRManager in your scene. So if you're using the Oculus XR Plugin, you still need to install the standard Oculus plugin, and place an OVRManager component somewhere. After that, OVRManager events will fire as expected, including application quit.