🐛 Trying to fix notification sound
This commit is contained in:
parent
7c351de594
commit
6dc0f523e0
@ -215,6 +215,7 @@ public class NotificationService(
|
|||||||
["meta"] = notification.Meta ?? new Dictionary<string, object>(),
|
["meta"] = notification.Meta ?? new Dictionary<string, object>(),
|
||||||
},
|
},
|
||||||
["mutable_content"] = true,
|
["mutable_content"] = true,
|
||||||
|
["priority"] = notification.Priority >= 10 ? "high" : "normal",
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(notification.Title))
|
if (!string.IsNullOrWhiteSpace(notification.Title))
|
||||||
@ -237,7 +238,7 @@ public class NotificationService(
|
|||||||
|
|
||||||
if (notification.Priority >= 5)
|
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;
|
dict["platform"] = platformCode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user