🐛 Trying to fix notification sound

This commit is contained in:
LittleSheep 2025-06-01 01:33:18 +08:00
parent 7c351de594
commit 6dc0f523e0

View File

@ -215,6 +215,7 @@ public class NotificationService(
["meta"] = notification.Meta ?? new Dictionary<string, object>(),
},
["mutable_content"] = true,
["priority"] = notification.Priority >= 10 ? "high" : "normal",
};
if (!string.IsNullOrWhiteSpace(notification.Title))
@ -237,7 +238,7 @@ public class NotificationService(
if (notification.Priority >= 5)
{
dict["sound"] = new Dictionary<string, object> { ["name"] = "default" };
dict["sound"] = new Dictionary<string, object> { ["name"] = "default", ["volume"] = 1.0 };
}
dict["platform"] = platformCode;