Unity 'Run in Background' conflict on Android

In my player settings, if I have ‘Run in Background’ enabled, my AR audio loop continues to play when I switch to another android app away from my browser.

If I disable the ‘Run in Background’ setting, when the page prompts the user for camera access, it loses focus, and Unity stops. So the user has to actually tap the screen again to wake Unity up and continue.

Edit: I am trying to use OnApplicationFocus(bool) to stop my audio when you switch apps, perhaps I am not doing this correctly.

I an now using ‘Run in Background’ on, but detecting if the user switches apps via this technique, so I can pause animation and audio:
https://forum.unity.com/threads/onpause-events-for-webgl-builds.432775/#post-2877495