# 'user-removed' not triggering on iOS Safari

**URL:** <https://devforum.zoom.us/t/user-removed-not-triggering-on-ios-safari/129390>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [March 7, 2025, 8:50am UTC](https://devforum.zoom.us/t/user-removed-not-triggering-on-ios-safari/129390 "2025-03-07T08:50:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user32](https://avatars.discourse-cdn.com/v4/letter/u/43a26b/32.png) [@user32](https://devforum.zoom.us/u/user32)\
**Post date:** [March 7, 2025, 8:50am UTC](https://devforum.zoom.us/t/user-removed-not-triggering-on-ios-safari/129390/1 "2025-03-07T08:50:59Z")

</div>

Hi I’ve developing with Zoom Video SDK.  
when close browser tab, the ‘user-removed’ event is not triggered.

Q1. It caused by beforeunload(web api) event not compatibility on iOS Safari?

Q2. When ‘user-removed’ not triggered, It seems user leave session automatically. (after a few minutes)  
Zoom video sdk check the connection status regularly and close session when disconnected?

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [March 7, 2025, 3:29pm UTC](https://devforum.zoom.us/t/user-removed-not-triggering-on-ios-safari/129390/2 "2025-03-07T15:29:22Z")

</div>

Hey @user32

Thanks for your feedback.

> Q1. It caused by beforeunload(web api) event not compatibility on iOS Safari?  
> Q2. When ‘user-removed’ not triggered, It seems user leave session automatically. (after a few minutes)

The Video SDK client and server have a heartbeat detection mechanism. If no heartbeat packet is received for more than 3 minutes, other users in the session will receive the `user-removed` event.

This is designed to prevent other users from noticing frequent leave & join events in cases of temporary network fluctuations where the connection is briefly lost and then restored.

We have a `user-updated` event to notify other users in the session, with the corresponding property being `isInFailover`.

> **[Participant | Zoom Video SDK for Web - 2.1.5](https://marketplacefront.zoom.us/sdk/custom/web/interfaces/Participant.html#isInFailover)**
>
> Documentation for Zoom Video SDK for Web - 2.1.5

Or, you can set `leaveOnPageUnload` option in the `client.init` method. This way, when the page is closed, other users in the session will see that you have left.

> **[InitOptions | Zoom Video SDK for Web - 2.1.5](https://marketplacefront.zoom.us/sdk/custom/web/interfaces/InitOptions.html#leaveOnPageUnload)**
>
> Documentation for Zoom Video SDK for Web - 2.1.5

Thanks  
Vic
