Hello
How can i add field ‘notification’ or ‘priority’ when sendbird sends ‘received new message’ notification?
Implemented push notifications several times and all worked fine, from my backend also works as expected.
According to the react-native-firebase docs Cloud Messaging | React Native Firebase, we need ‘priority: high’ or ‘notification’ field, to see popup notification.
that how it comes now, missing both required fields
{
data: {
message: 'Test message sent at 18:46:08 on 11-10-2021',
sendbird:
'{"sqs_ts":1636562768817,"custom_type":"","channel":{"channel_unread_message_count":11,"custom_type":"","name":"Push Notification Tester","channel_url":"pushtesttoold08c6d852c09588b5d3e4497ac2d7536"},"created_at":1636562768755,"message_id":1573224352,"message":"Test message sent at 18:46:08 on 11-10-2021","type":"ADMM","unread_message_count":15,"push_title":null,"audience_type":"only","push_sound":"default","translations":{},"recipient":{"name":"Larry Morgan","push_template":"default","id":"114dba88-80dc-4827-93a1-34b16e8f42e5"},"files":[],"category":"messaging:offline_notification","channel_type":"group_messaging","mentioned_users":[],"app_id":"F7678905-EEA2-408E-94BE-98418116BF94"}',
},
from: '842195359472',
messageId: '0:1636562768937813%a8047b4ff9fd7ecd',
sentTime: 1636562768922,
ttl: 2419200,
};