Hi there, is there a callback like an OnApplicationPause() when the app is interrupted by a phone call or goes inactive when the player decides to switch to another app? Iβve checked the XR8 apis, but most of them seem to be pure api functions. Thanks for any suggestions, as this is a hard requirement for submission.
Try the visibilitychanged
event thatβs apart of standard Javascript.
document.addEventListener('visibilitychange', function(ev) {
console.log(`Tab state : ${document.visibilityState}`);
});