Interruption Management

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}`);
});