After registering a credential for push notification services to the Sendbird Server, you can test on Sendbird Dashboard whether the push notification credentials and notification services work properly.
In Settings > Notifications > Push notification credentials on the dashboard, each credential has a Send button that allows you to send a test message. The test message is sent to a target user and their device, which sends a push notification to the device. At the same time, a new group channel is created for this test, containing only the target user. If you've already tested with the same target user and the same target device token, the message is sent to the existing test channel.
Note: If there is another member in the test channel or the target user has left the channel, delete the test channel before testing.
- Go to Settings > Notifications > Push notification credentials on Sendbird Dashboard. Find a Send button in the right-end column of each table.
- You can search for a target user with either their User ID or Nickname in the popup window. Once a user has been selected, choose a target device from a list of device tokens linked to the user.
- Double check if you've selected the correct device token of the user because this push notification shows up on an actual device. Confirm the target channel name and URL, then send the message.
Note: If this is your first test, a new test channel is created. For future tests with the same target user and the same target device token, the name and URL of the existing test channel will appear above the message box.
- Check to see if the push notification has arrived on the device or emulator. The test message should include the time when the Sendbird server sent the message.
Note: In order to display push notifications on Android devices and emulators, an additional implementation is required on the client app. To learn more, see push notification for FCM or push notification for HMS. For iOS devices, only an actual mobile device can receive push notifications while emulators can't.