Browser notifications
TalkJS can send browser (desktop) notifications to alert users when they receive new messages, even if they’re viewing another tab or window. This keeps users engaged and responsive while multitasking.
Before notifications can appear, users need to grant permission in their browser. TalkJS automatically triggers the permission dialog the first time notifications are enabled, or whenever users toggle browser notifications on.
Once permissions are granted, TalkJS shows a notification whenever a new message arrives even if the user is viewing another window, as long as at least one browser tab has your app open.
Browser notifications require an active Session, hence it's recommended to initialize a session on every page.
The Inbox prebuilt chat UI includes a built-in toggle that lets users enable or turn off desktop notifications.
If you're using any of other chat UIs, then you can set up browser (desktop) notifications through Firebase Cloud Messaging (FCM).