🏁 🍎 Add Silent Notification Support
* Implements support for silent notifications on Windows and OS X * Exposes bool `silent` to Linux notification presenters
This commit is contained in:
parent
c9993ccc26
commit
728f0f985b
8 changed files with 95 additions and 10 deletions
|
@ -57,7 +57,7 @@ void PlatformNotificationService::DisplayNotification(
|
|||
auto notification = presenter->CreateNotification(adapter.get());
|
||||
if (notification) {
|
||||
ignore_result(adapter.release()); // it will release itself automatically.
|
||||
notification->Show(data.title, data.body, data.icon, icon);
|
||||
notification->Show(data.title, data.body, data.icon, icon, data.silent);
|
||||
*cancel_callback = base::Bind(&RemoveNotification, notification);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue