Search Issue Tracker
By Design
Votes
2
Found in
2019.4
2020.2.1f1
2020.3
2021.1
2021.2
Issue ID
1320648
Regression
No
[XR][Quest] OnApplicationQuit and OnDestroy are not being called when quitting the application
How to reproduce:
1. Open the attached project "1320648.zip"
2. Make sure the Android Logcat window is open (Window > Analysis > Android Logcat)
3. Build and Run to an Oculus Quest device
4. Quit the application through the Oculus Quest menu
5. Search for OnApplicationQuit" or "OnDestroy" in the Android Logcat search window
Expected result: Both "OnApplicationQuit" and "OnDestroy" are being executed and consequentially logged in the Logcat
Actual result: Neither are being executed as seen in the Logcat
Reproducible with:
Oculus XR 1.8.1 (2019.4.24f1)
Oculus XR 1.9.0 (2019.4.24f1, 2020.3.5f1, 2021.1.4f1, 2021.2.0a14)
Could not test with: 2018.4.34f1 (only the version 0.0.9-preview of Oculus XR Plugin is supported)
Notes:
- "QuitScript.cs" is the script that stores the OnApplicationQuit() and OnDestroy() functions in it
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (2022.1.X):
The docs are being updated by the Documentation team to be more specific about the limitations of these events on mobile platforms and possible workarounds.