After registering a credential for push notification services, 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 sets off a push notification on the device. At the same time, a new group channel containing only the target user is created for this test. If you've already tested push notification 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 to see 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 mobile 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.