💥 Update push notification

This commit is contained in:
2025-06-01 02:51:39 +08:00
parent 57775eb0a1
commit 7dee2a15e7
6 changed files with 10 additions and 17 deletions

View File

@ -206,12 +206,10 @@ public class NotificationService(
["notif_id"] = notification.Id.ToString(),
["apns_id"] = notification.Id.ToString(),
["topic"] = _notifyTopic,
["category"] = notification.Topic,
["tokens"] = deviceTokens,
["alert"] = new Dictionary<string, object>(),
["data"] = new Dictionary<string, object>
{
["d_topic"] = notification.Topic,
["type"] = notification.Topic,
["meta"] = notification.Meta ?? new Dictionary<string, object>(),
},
["mutable_content"] = true,
@ -237,7 +235,7 @@ public class NotificationService(
}
if (notification.Priority >= 5)
dict["sound"] = "default";
dict["name"] = "default";
dict["platform"] = platformCode;
dict["alert"] = alertDict;