Android: App still appears to render after being "switched away", blocking all other apps
This has been around for a while, in the "Service" "Draw over other apps", but it makes it pretty challenging to use.
Somehow we need to get the event that the app activity is no longer active, and stop drawing ourselves (and update the openxr session state accordingly). Not sure how easy it is to inject some kind of lifecycle observer in.
One thing that did cross my mind, it appears that there's a surfaceDestroyed callback being triggered in the app, we could inject our own view/surface into the app even if we're doing draw-over from the service, just to get that callback, if we needed to, but that's probably less elegant than preferred.