# Interruption Management

**URL:** <https://forum.8thwall.com/t/interruption-management/4732>\
**Category:** Technical Support\
**Tags:** general\
**Created:** [February 7, 2025, 5:25am UTC](https://forum.8thwall.com/t/interruption-management/4732 "2025-02-07T05:25:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Ong](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@Jonathan\_Ong](https://forum.8thwall.com/u/Jonathan_Ong)\
**Post date:** [February 7, 2025, 5:25am UTC](https://forum.8thwall.com/t/interruption-management/4732/1 "2025-02-07T05:25:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [February 7, 2025, 4:28pm UTC](https://forum.8thwall.com/t/interruption-management/4732/2 "2025-02-07T16:28:02Z")

</div>

Try the [`visibilitychanged` event](https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilitychange_event) that’s apart of standard Javascript.

```js
document.addEventListener('visibilitychange', function(ev) {
  console.log(`Tab state : ${document.visibilityState}`);
});

```
