This commit is contained in:
Artemy
2026-03-01 18:10:21 +07:00
parent eab0d746b8
commit dc6bf14e43
3 changed files with 12 additions and 6 deletions
@@ -39,15 +39,15 @@ public class FirebasePushProvider : IPushNotificationProvider
Notification = new Notification
{
Title = message.Title,
Body = message.Body
Body = message.Body,
},
Data = message.Data,
Android = message.ChannelId != null ? new AndroidConfig
{
Priority = Priority.High,
Notification = new AndroidNotification
{
ChannelId = message.ChannelId,
Priority = NotificationPriority.HIGH
ChannelId = message.ChannelId ?? "chat_messages"
}
} : null
};
@@ -82,7 +82,11 @@ public class FirebasePushProvider : IPushNotificationProvider
{
var msg = new Message
{
Notification = new Notification { Title = pm.Title, Body = pm.Body },
Notification = new Notification
{
Title = pm.Title,
Body = pm.Body
},
Data = pm.Data,
Token = token
};
@@ -91,6 +95,7 @@ public class FirebasePushProvider : IPushNotificationProvider
{
msg.Android = new AndroidConfig
{
Priority = Priority.High,
Notification = new AndroidNotification { ChannelId = pm.ChannelId }
};
}