Skip to content

Commit

Permalink
Add priority to android notif
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Sep 30, 2024
1 parent d2d991f commit 87c3aa3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/bin/calaos_server/Rules/ActionPush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,16 @@ void ActionPush::sendNotif()
{ "tokens", tokArray },
{ "platform", 2 },
{ "message", nmsg },
{ "title", "Calaos" }
{ "title", "Calaos" },
{ "priority", "high" },
{ "sound", "default" }
};

//force priority to high to make sure the notification is displayed
notif["notification"] = {
{ "title", "Calaos" },
{ "body", nmsg },
{ "sound", "default" }
};

if (!notif_pic_uid.empty())
Expand Down

0 comments on commit 87c3aa3

Please sign in to comment.