How do we manage push notification while online/offline with a multi-device approach?

Sendbird supports push notifications when the user is offline or logged out. When a user is disconnected from the Sendbird server, the server sends push notification requests to the respective push notification service (FCM or APNs) for the messages. The push notification service then delivers the notification to the user’s device where the client app is installed.

In Sendbird, push notifications with multi-device support are delivered to all online and offline devices of a multi-device user, but they are displayed only on offline devices. This means that if a user is online on one or more devices, notifications aren’t delivered and thus not displayed on any device.

Provided a user is offline or logged out of the Sendbird app on their device. If another user sends them a message, the Sendbird server will send a push notification request to the push notification service (FCM or APNs) for the message. The push notification service will then deliver the notification to the user’s device, even if they are not currently using the Sendbird app. This allows the user to receive important messages even when they are not actively using the app.

For example, let’s say a user has six devices with the Sendbird client app installed. The user is online on one of the devices and offline on the remaining five. When general push notifications are implemented, notifications aren’t delivered to any of their devices. But when push notifications with multi-device support are implemented, notifications are delivered to all six devices and displayed on the five offline devices.

This functionality is useful for users who have multiple devices and want to receive notifications on all of them, even if they are not currently using a particular device. For example, a user may have a phone, tablet, and laptop, and want to receive notifications on all three devices. With push notifications with multi-device support, they can receive notifications on all three devices, even if they are only actively using one of them at a given time.

Please refer to the below documentation for more information:

Javascript: Overview | Chat JavaScript SDK | Sendbird Docs

iOS: Overview | Chat iOS SDK | Sendbird Docs

Android: Overview | Chat Android SDK | Sendbird Docs

Flutter: Overview | Chat Flutter SDK | Sendbird Docs