Using Chat SDK for Flutter, you can send push notification messages to your user's device when the device is either idle or running the client app in the background. For group channels only, notifications can be configured to display an alert, play a sound, or place a badge on the client app's icon.
Push notifications for Flutter client apps are sent using Firebase Cloud Messaging (FCM), depending on users' device. When a message is sent to the Sendbird server through our Chat SDK, the server communicates with FCM or APNs with a push notification payload, which contains custom data that your app needs in order to respond to the notifications. Then, the FCM or APNs delivers a push notification to mobile devices where the client app is installed.
By default, when a user receives messages while disconnected from the Sendbird server, the server sends push notification requests to FCM for the messages, regardless of platform the user is on. This is possible because the Chat SDK automatically detects when a user's client app goes into the background from the foreground and updates the user's connection status to disconnected. Therefore, under normal circumstances, there is no need to explicitly call the
Functionalities by topic
Users can set their preferences for receiving notifications in their devices. The following is a list of functionalities that our Chat SDK provides.
|Functionality||Description||Open channel||Group channel|
Lets users receive FCM or APNs messages in their app.
Enables the legacy Cloud Messaging API.
Turns push notifications on or off in a user's app using the user's registration token.
Displays customized push notification messages on a user's device using templates.
Tests push notifications on Sendbird Dashboard to see if the push notification credentials and notification services are working properly.
Lets users receive notification messages translated into their preferred languages.