'user-removed' not triggering on iOS Safari

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?

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.

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.

Thanks
Vic