Create notifications on Windows and MacOS that won't timeout

Hannah von Reth hannah at von-reth.de
Mon Mar 18 19:09:15 GMT 2019


Hi Michael,

Snorenotify isn't that well maintained any more but a infinite timeout should be possible.
https://github.com/KDE/snorenotify/blob/0.7/src/libsnore/notification/notification.h#L160

Just set the timeout to 0.


SnoreToast is getting some new attention and the next version will have action center integration, buttons, and text replies.

Looks like I should have a look on https://docs.microsoft.com/en-us/dotnet/api/microsoft.toolkit.uwp.notifications.toastscenario?view=win-comm-toolkit-dotnet-stable too to add reminders.


Cheers,

Hannah

________________________________
From: Snorenotify <snorenotify-bounces at kde.org> on behalf of Michael Albert <michael.albert at awesome-technologies.de>
Sent: Monday, March 18, 2019 7:01 PM
To: snorenotify at kde.org
Subject: Create notifications on Windows and MacOS that won't timeout

Hello,

we would like to use SnoreNotify to create notifications in our application. We need to configure these notifications to stay on the screen until the user actively
dismisses them. How could this be achieved with SnoreNotify on Windows and MacOS? Unfortunately there is very little documentation on how to use the
SnoreNotify framework. We managed to build our application with SnoreNotify on MacOS (snorenotify 0.7.0 and Qt 5.11.3) and to create a notification that disappears after 10 seconds. On Windows
we can build the application but it crashes when Snore::SnoreCore::instance() is called.
I tried to use the SnoreToast.exe from commandline which basically works. But it seems that SnoreToast.exe does not support an option for setting the timeout so that
the notification would stay on the screen. Is that correct?

Kind regards

Michael Albert

----------------------------------------------------------------
Dr. Michael Albert
Mail: michael.albert at awesome-technologies.de<mailto:michael.albert at awesome-technologies.de>
Web: www.awesome-technologies.de<http://www.awesome-technologies.de/>
Tel: 0931/30699001
Mobil: 0176/85628070

Awesome Technologies Innovationslabor GmbH
Rückertstraße 10, 97072 Würzburg

Amtsgericht Würzburg
HRB 13771

Geschäftsführung: Christoph Günther
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/snorenotify/attachments/20190318/2cf48c74/attachment.html>


More information about the Snorenotify mailing list