<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Send notification locally from QT&#x2F;C++&#x2F;QML App.]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I've been trying a create a Whatsweb fork (Application for whatsapp based on whatsapp web), that is able to send notifications, provided that the app suspend is disabled, by catching web desktop notifications and then notifying the system from that. (So that it vibrates, plays a sound and display notification on the system tray, as it would for a SMS)</p>
<p dir="auto"><strong>I have a simple question:</strong> is it actually possible from  from QT/C++/QML  to send a local notification from an app in apparmor context without going through the Push Server loop, or not?</p>
<p dir="auto">In this repository I've tried many things, in particular libnotify, and notify through QtDBus on <em>com.lomiri.Postal</em>, but nothing works. (libnotify works more or less when executing the executable from terminal, but not from apparmor context)</p>
<p dir="auto"><a href="https://github.com/pparent76/whatsweb/tree/master" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pparent76/whatsweb/tree/master</a></p>
<p dir="auto">If someone has a hint about how to trigger a notification locally in the easiest way possible, it would greatly help.</p>
<p dir="auto">Thank you in advance.</p>
]]></description><link>https://forums.ubports.com/topic/11375/send-notification-locally-from-qt-c-qml-app.</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 06:52:49 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/11375.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Sep 2025 14:17:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Tue, 07 Oct 2025 15:37:04 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/2714.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--heavy_check_mark" style="height:23px;width:auto;vertical-align:middle" title=":heavy_check_mark:" alt="✔" /> <strong>My solution to the initial question:</strong><br />
<strong>Here is my QML module to handle local notifications:</strong></p>
<p dir="auto"><a href="https://github.com/pparent76/UbuntuTouch-qml-notify-module" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pparent76/UbuntuTouch-qml-notify-module</a></p>
<p dir="auto">It contains a script <strong><a href="http://setup-project.sh" target="_blank" rel="noopener noreferrer nofollow ugc">setup-project.sh</a></strong> to install automatically all the requirements into the app project.</p>
<hr />
<p dir="auto">Also this push request to the whatsweb app can be pretty informative:</p>
<p dir="auto"><a href="https://github.com/alefnode/ubports-apps/pull/44" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/alefnode/ubports-apps/pull/44</a></p>
<p dir="auto">Especially this commit that corresponds to setting up the module with <a href="http://setup-project.sh" target="_blank" rel="noopener noreferrer nofollow ugc">setup-project.sh</a>:</p>
<p dir="auto"><a href="https://github.com/alefnode/ubports-apps/pull/44/commits/81d08baba14ed941ca0c9b246d0df543b0a452a6" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/alefnode/ubports-apps/pull/44/commits/81d08baba14ed941ca0c9b246d0df543b0a452a6</a></p>
]]></description><link>https://forums.ubports.com/post/88821</link><guid isPermaLink="true">https://forums.ubports.com/post/88821</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Tue, 07 Oct 2025 15:37:04 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Wed, 08 Oct 2025 15:49:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fuseteam" aria-label="Profile: Fuseteam">@<bdi>Fuseteam</bdi></a><br />
You can always compile and test the current version of my repo:</p>
<p dir="auto"><a href="https://github.com/pparent76/whatsweb" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pparent76/whatsweb</a></p>
<p dir="auto">It already contains many improvements:</p>
<ul>
<li>Support for notifications</li>
<li>Smoother navigation with transitions</li>
<li>Smoother keyboard appearance/appearance</li>
<li>Avoid opening the keyboard untimely, when navigating</li>
<li>Enable GPU acceleration</li>
<li>Hide left panel for more pleasant interface</li>
<li>Make Emoji panel usable</li>
<li>Better graphical integration of navigation buttons ( back in chatview )</li>
<li>Copy a message to clipboard quickly with a long push on message.</li>
<li>Screensaver when the app is not foreground: hide the webview to save battery</li>
<li>Fix "contact info" panel</li>
<li>Fix left menus.</li>
</ul>
]]></description><link>https://forums.ubports.com/post/88824</link><guid isPermaLink="true">https://forums.ubports.com/post/88824</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Wed, 08 Oct 2025 15:49:15 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Tue, 07 Oct 2025 15:37:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> that's an interesting tweak— curious to see the effect</p>
]]></description><link>https://forums.ubports.com/post/88823</link><guid isPermaLink="true">https://forums.ubports.com/post/88823</guid><dc:creator><![CDATA[Fuseteam]]></dc:creator><pubDate>Tue, 07 Oct 2025 15:37:12 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Tue, 07 Oct 2025 15:36:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fuseteam" aria-label="Profile: Fuseteam">@<bdi>Fuseteam</bdi></a>  Seems out of my scope, and having notifications only when the app is on to me is not a real drawback, since it allows to get notifications only when you want, and quit the app otherwise.</p>
<p dir="auto">Also in my current version I made a tweak to hide the webview when the app is not in foreground to make sure it does not compute any visual stuff in the webview in background.</p>
<p dir="auto">In practice with this the battery usage seem very limited.</p>
]]></description><link>https://forums.ubports.com/post/88822</link><guid isPermaLink="true">https://forums.ubports.com/post/88822</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Tue, 07 Oct 2025 15:36:02 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Tue, 07 Oct 2025 15:37:04 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/2714.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--heavy_check_mark" style="height:23px;width:auto;vertical-align:middle" title=":heavy_check_mark:" alt="✔" /> <strong>My solution to the initial question:</strong><br />
<strong>Here is my QML module to handle local notifications:</strong></p>
<p dir="auto"><a href="https://github.com/pparent76/UbuntuTouch-qml-notify-module" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pparent76/UbuntuTouch-qml-notify-module</a></p>
<p dir="auto">It contains a script <strong><a href="http://setup-project.sh" target="_blank" rel="noopener noreferrer nofollow ugc">setup-project.sh</a></strong> to install automatically all the requirements into the app project.</p>
<hr />
<p dir="auto">Also this push request to the whatsweb app can be pretty informative:</p>
<p dir="auto"><a href="https://github.com/alefnode/ubports-apps/pull/44" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/alefnode/ubports-apps/pull/44</a></p>
<p dir="auto">Especially this commit that corresponds to setting up the module with <a href="http://setup-project.sh" target="_blank" rel="noopener noreferrer nofollow ugc">setup-project.sh</a>:</p>
<p dir="auto"><a href="https://github.com/alefnode/ubports-apps/pull/44/commits/81d08baba14ed941ca0c9b246d0df543b0a452a6" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/alefnode/ubports-apps/pull/44/commits/81d08baba14ed941ca0c9b246d0df543b0a452a6</a></p>
]]></description><link>https://forums.ubports.com/post/88821</link><guid isPermaLink="true">https://forums.ubports.com/post/88821</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Tue, 07 Oct 2025 15:37:04 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Tue, 07 Oct 2025 12:42:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> if you are going to improve the app further, there is one more idea you can try; whatsapp web's service workers.</p>
<p dir="auto">If we can figure out the service workers, we can potentially get notifications even without being unsuspended</p>
]]></description><link>https://forums.ubports.com/post/88813</link><guid isPermaLink="true">https://forums.ubports.com/post/88813</guid><dc:creator><![CDATA[Fuseteam]]></dc:creator><pubDate>Tue, 07 Oct 2025 12:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Sat, 04 Oct 2025 12:37:19 GMT]]></title><description><![CDATA[<p dir="auto">Ps: And by the way I also plan to make this whatsapp application way more usable than it was. The version currently on my repo, already include some improvements that make the app significantly more fluid, polished and usable. But I will keep improving it progressively, and I plan to fix all the major functionalities offered by whatsapp web,  that are currently broken on the app (starting with downloading/uploading photos/videos). And also I guess that future upgrade to Qt6 will also be a leap forward in regards of performance of this app, given that the webengine will be significantly more modern.</p>
]]></description><link>https://forums.ubports.com/post/88722</link><guid isPermaLink="true">https://forums.ubports.com/post/88722</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Sat, 04 Oct 2025 12:37:19 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Sat, 04 Oct 2025 12:10:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lduboeuf" aria-label="Profile: lduboeuf">@<bdi>lduboeuf</bdi></a> said in <a href="/post/88694">Send notification locally from QT/C++/QML App.</a>:</p>
<blockquote>
<p dir="auto">congrats for your perseverance. Now you are in the perfect situation to update or create a documentation  <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
</blockquote>
<p dir="auto">Thank's I will make better than this! <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=":wink:" alt="😉" />  I will update my QML notification module, and make a scripts that installs into an existing project all the prerequisites for it to work. Because there are some many tweaks to achieve it that it should not be done by a human, it's a loss of time, and the risk of mistake is too high. And anyway a script is always a more precise documentation on the actions to take than a human readable documentation.</p>
]]></description><link>https://forums.ubports.com/post/88718</link><guid isPermaLink="true">https://forums.ubports.com/post/88718</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Sat, 04 Oct 2025 12:10:02 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 21:47:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> said in <a href="/post/88690">Send notification locally from QT/C++/QML App.</a>:</p>
<blockquote>
<p dir="auto">Ok in this version of whatsweb I have the notifications working without being unconfined, and it gets to the system panel! (Provided the app is not suspended in background)</p>
<p dir="auto"><img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f389.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--tada" style="height:23px;width:auto;vertical-align:middle" title="🎉" alt="🎉" /><img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f389.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--tada" style="height:23px;width:auto;vertical-align:middle" title="🎉" alt="🎉" /></p>
<p dir="auto"><a href="https://github.com/pparent76/whatsweb/tree/778f2302414f75029b22ea42a136fce3440f7a29" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pparent76/whatsweb/tree/778f2302414f75029b22ea42a136fce3440f7a29</a></p>
</blockquote>
<p dir="auto">congrats for your perseverance. Now you are in the perfect situation to update or create a documentation  <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forums.ubports.com/post/88694</link><guid isPermaLink="true">https://forums.ubports.com/post/88694</guid><dc:creator><![CDATA[lduboeuf]]></dc:creator><pubDate>Fri, 03 Oct 2025 21:47:05 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Sun, 05 Oct 2025 14:56:37 GMT]]></title><description><![CDATA[<p dir="auto">Ok in this version of whatsweb I have the notifications working without being unconfined, and it gets to the system panel! (Provided the app is not suspended in background)</p>
<p dir="auto"><img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f389.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--tada" style="height:23px;width:auto;vertical-align:middle" title="🎉" alt="🎉" /><img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f389.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--tada" style="height:23px;width:auto;vertical-align:middle" title="🎉" alt="🎉" /></p>
<p dir="auto"><a href="https://github.com/pparent76/whatsweb/tree/82cd0c659af09bfad4315ba6c39e398d881451c3" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pparent76/whatsweb/tree/82cd0c659af09bfad4315ba6c39e398d881451c3</a></p>
]]></description><link>https://forums.ubports.com/post/88690</link><guid isPermaLink="true">https://forums.ubports.com/post/88690</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Sun, 05 Oct 2025 14:56:37 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 17:05:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> said in <a href="/post/88684">Send notification locally from QT/C++/QML App.</a>:</p>
<blockquote>
<p dir="auto">I guess this was the missing piece that I had seen nowhere else. ( Having PROGRAM instead of files )</p>
</blockquote>
<p dir="auto">I found this by checking <code>journalctl -f</code> on the device while calling gdbus</p>
]]></description><link>https://forums.ubports.com/post/88685</link><guid isPermaLink="true">https://forums.ubports.com/post/88685</guid><dc:creator><![CDATA[lk108]]></dc:creator><pubDate>Fri, 03 Oct 2025 17:05:04 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 17:00:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lk108" aria-label="Profile: lk108">@<bdi>lk108</bdi></a> said in <a href="/post/88683">Send notification locally from QT/C++/QML App.</a>:</p>
<blockquote>
<p dir="auto">install(PROGRAMS pushexec DESTINATION ${CMAKE_INSTALL_PREFIX})</p>
</blockquote>
<p dir="auto">Ok it works!!! Thanks! <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f60a.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--blush" style="height:23px;width:auto;vertical-align:middle" title=":blush:" alt="😊" /></p>
<p dir="auto">I guess this was the missing piece that I had seen nowhere else. ( Having PROGRAM instead of files )</p>
<p dir="auto">I will make a version of whatsapp app with these notifications next.</p>
<p dir="auto">Though, I still think this is not normal that it requires so many specific tweaks to do something as simple as sending a notification. At least my repo will possibly serve as a documentation for someone looking for that.</p>
]]></description><link>https://forums.ubports.com/post/88684</link><guid isPermaLink="true">https://forums.ubports.com/post/88684</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Fri, 03 Oct 2025 17:00:39 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 16:52:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> Three things:</p>
<ol>
<li>In your manifest, you define a hook "notify-notify", but it should be "push":</li>
</ol>
<pre><code>
    "hooks": {
        "notify": {
            "apparmor": "notify.apparmor",
            "desktop":  "notify.desktop",
            "content-hub": "content-hub.json"
        },
        "push": {
            "apparmor": "notify-push.apparmor",
            "push-helper": "notify-push-helper.json"
        }
    },
[...]
</code></pre>
<ol start="2">
<li>You need to install the push helper with execution rights in CMakeLists.txt:</li>
</ol>
<pre><code>install(PROGRAMS pushexec DESTINATION ${CMAKE_INSTALL_PREFIX})
</code></pre>
<ol start="3">
<li>I was not aware, but there actually seems to be a difference between confined and unconfined apps. The push helper of dekko is allowed to use <code>cp</code>, but for your app, it's not. So instead of the simple bash script that just says <code>cp $1 $2</code>, use python in your <code>pushexec</code>:</li>
</ol>
<pre><code>#!/usr/bin/python3
import sys
f1, f2 = sys.argv[1:3]
open(f2, "w").write(open(f1).read())
</code></pre>
<p dir="auto">With this, your gdbus line works.</p>
]]></description><link>https://forums.ubports.com/post/88683</link><guid isPermaLink="true">https://forums.ubports.com/post/88683</guid><dc:creator><![CDATA[lk108]]></dc:creator><pubDate>Fri, 03 Oct 2025 16:52:50 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 15:41:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lk108" aria-label="Profile: lk108">@<bdi>lk108</bdi></a></p>
<p dir="auto">Ok then let's agree on a minimalist example that should work. Can you see why this minimalist example does NOT work?</p>
<p dir="auto"><a href="https://github.com/pparent76/UT-notify-example" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/pparent76/UT-notify-example</a></p>
<p dir="auto">It does not work, when dbus calls are made from the code, but it does not work either with the terminal command (Whether the app is visible or not when the call is made, it does not change anything)</p>
<pre><code>gdbus call --session --dest com.lomiri.Postal --object-path /com/lomiri/Postal/notify_2epparent --method com.lomiri.Postal.Post notify.pparent_notify '{"message": "foobar", "notification":{"card": {"summary": "yes", "body": "hello", "popup": true, "persist": true}}}'
</code></pre>
]]></description><link>https://forums.ubports.com/post/88680</link><guid isPermaLink="true">https://forums.ubports.com/post/88680</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Fri, 03 Oct 2025 15:41:15 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 14:15:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> For my app, this works: <a href="https://codeberg.org/lk108/deltatouch/src/commit/d734cab514c0ee0c465b759d46c05ada322f58ca/src/plugins/DeltaHandler/notificationsLomiriPostal.cpp#L345" target="_blank" rel="noopener noreferrer nofollow ugc">https://codeberg.org/lk108/deltatouch/src/commit/d734cab514c0ee0c465b759d46c05ada322f58ca/src/plugins/DeltaHandler/notificationsLomiriPostal.cpp#L345</a><br />
(but only if the app is <strong>not</strong> currently shown to the user)</p>
]]></description><link>https://forums.ubports.com/post/88677</link><guid isPermaLink="true">https://forums.ubports.com/post/88677</guid><dc:creator><![CDATA[lk108]]></dc:creator><pubDate>Fri, 03 Oct 2025 14:15:28 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 13:53:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> The DBus call passes the JSON at the end of your command to the so-called push helper. This is a separate executable that is shipped with each app that supports push. Check the manifest, it defines a hook "push" which has an entry "push-helper". This entry again references a JSON with an entry "exec" pointing to the push helper executable.</p>
<p dir="auto">The push helper is called by the system with an infile containing the JSON passed by the DBus call, and an outfile to which the push helper is expected to write a JSON in a format that is understood by the notification service.</p>
<p dir="auto">In the case of dekko2, the push helper is just passing the content of the infile to the outfile as it is already fed something in the correct format by dekko's background service. So your command works. In the case of teleports, the push helper is expecting something else entirely, and does not know what to do with the JSON that you fed to it via your DBus call.</p>
]]></description><link>https://forums.ubports.com/post/88674</link><guid isPermaLink="true">https://forums.ubports.com/post/88674</guid><dc:creator><![CDATA[lk108]]></dc:creator><pubDate>Fri, 03 Oct 2025 13:53:24 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 13:44:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> Notifications has nothing to do with the app being confined or not</p>
]]></description><link>https://forums.ubports.com/post/88671</link><guid isPermaLink="true">https://forums.ubports.com/post/88671</guid><dc:creator><![CDATA[lk108]]></dc:creator><pubDate>Fri, 03 Oct 2025 13:44:04 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 13:41:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> At some place in the code that generates the notification popup and the entry in the notification list, there's a check if the app for which the notification is generated is currently active and shown on the screen to the user. If that's the case, generation of the popup etc. is aborted.</p>
]]></description><link>https://forums.ubports.com/post/88670</link><guid isPermaLink="true">https://forums.ubports.com/post/88670</guid><dc:creator><![CDATA[lk108]]></dc:creator><pubDate>Fri, 03 Oct 2025 13:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 12:55:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lduboeuf" aria-label="Profile: lduboeuf">@<bdi>lduboeuf</bdi></a> said in <a href="/post/88667">Send notification locally from QT/C++/QML App.</a>:</p>
<blockquote>
<p dir="auto">dekko is unconfined, teleports not....</p>
</blockquote>
<p dir="auto">Yes but in both case I do the dbus call from unconfined terminal, so this should not even make a difference....</p>
<p dir="auto">Or else, its Postal itself that when receiving the call, verifies if the app is confined or not, and will only send the notification if unconfined?.... This makes no sense at all....</p>
<p dir="auto">If we can officially send notifications only from unconfined context then it should be clearly stated, but then it's to be expected that people want to build unconfined apps... <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f627.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--anguished" style="height:23px;width:auto;vertical-align:middle" title=":anguished:" alt="😧" /></p>
]]></description><link>https://forums.ubports.com/post/88668</link><guid isPermaLink="true">https://forums.ubports.com/post/88668</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Fri, 03 Oct 2025 12:55:19 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 12:46:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> said in <a href="/post/88666">Send notification locally from QT/C++/QML App.</a>:</p>
<blockquote>
<p dir="auto">By the way intersting thing to note, having teleports and dekko installed</p>
<p dir="auto">This does not do anything (but does not throw any error)</p>
<pre><code>gdbus call --session --dest com.lomiri.Postal --object-path /com/lomiri/Postal/teleports_2eubports --method com.lomiri.Postal.Post teleports.ubports_teleports '{"message": "foobar", "notification":{"card": {"summary": "yes", "body": "hello", "popup": true, "persist": true}}}'
</code></pre>
<p dir="auto">This triggers a notification</p>
<pre><code>gdbus call --session --dest com.lomiri.Postal --object-path /com/lomiri/Postal/dekko2_2edekkoproject --method com.lomiri.Postal.Post dekko2.dekkoproject_dekko '{"message": "foobar", "notification":{"card": {"summary": "yes", "body": "hello", "popup": true, "persist": true}}}'
</code></pre>
<p dir="auto">Why?</p>
</blockquote>
<p dir="auto">dekko is unconfined, teleports not....</p>
]]></description><link>https://forums.ubports.com/post/88667</link><guid isPermaLink="true">https://forums.ubports.com/post/88667</guid><dc:creator><![CDATA[lduboeuf]]></dc:creator><pubDate>Fri, 03 Oct 2025 12:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 12:48:37 GMT]]></title><description><![CDATA[<p dir="auto">By the way intersting thing to note, having teleports and dekko installed</p>
<p dir="auto">This does not do anything (but does not throw any error)</p>
<pre><code>gdbus call --session --dest com.lomiri.Postal --object-path /com/lomiri/Postal/teleports_2eubports --method com.lomiri.Postal.Post teleports.ubports_teleports '{"message": "foobar", "notification":{"card": {"summary": "yes", "body": "hello", "popup": true, "persist": true}}}'
</code></pre>
<p dir="auto">This triggers a notification</p>
<pre><code>gdbus call --session --dest com.lomiri.Postal --object-path /com/lomiri/Postal/dekko2_2edekkoproject --method com.lomiri.Postal.Post dekko2.dekkoproject_dekko '{"message": "foobar", "notification":{"card": {"summary": "yes", "body": "hello", "popup": true, "persist": true}}}'
</code></pre>
<p dir="auto">Why? Can anybody explain this witchcraft? <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=56a73af4c47" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title=":sweat_smile:" alt="😅" /></p>
]]></description><link>https://forums.ubports.com/post/88666</link><guid isPermaLink="true">https://forums.ubports.com/post/88666</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Fri, 03 Oct 2025 12:48:37 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 12:40:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lk108" aria-label="Profile: lk108">@<bdi>lk108</bdi></a> said in <a href="/post/88642">Send notification locally from QT/C++/QML App.</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> Not sure if this is relevant here, but notifications won't show if the app is the currently active one, i.e., shown in the foreground with unlocked screen. This is on purpose: <a href="https://gitlab.com/ubports/development/core/lomiri-push-service/-/commit/0c8983a359e9834cad4015512d57b5a29ca06937" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/ubports/development/core/lomiri-push-service/-/commit/0c8983a359e9834cad4015512d57b5a29ca06937</a></p>
</blockquote>
<p dir="auto">Thank's for the message, but I'm not sure to see what you mean by "notifications won't show if the app is the currently active one, i.e., shown in the foreground with unlocked screen."</p>
<p dir="auto">In any case I would like yet to see a simple example where this notification system through POSTAL actually does work. The only example I've seen is dekko, but they have so many "notification plugins" modules in their code that it's very hard to follow what makes it work + they are running unconfined.</p>
<p dir="auto">If someone knows how this systems works, and wants to write a minimal "Hello world" through notification example app, I think it could help many potential developers.</p>
]]></description><link>https://forums.ubports.com/post/88665</link><guid isPermaLink="true">https://forums.ubports.com/post/88665</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Fri, 03 Oct 2025 12:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Fri, 03 Oct 2025 08:00:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pparent" aria-label="Profile: pparent">@<bdi>pparent</bdi></a> Not sure if this is relevant here, but notifications won't show if the app is the currently active one, i.e., shown in the foreground with unlocked screen. This is on purpose: <a href="https://gitlab.com/ubports/development/core/lomiri-push-service/-/commit/0c8983a359e9834cad4015512d57b5a29ca06937" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/ubports/development/core/lomiri-push-service/-/commit/0c8983a359e9834cad4015512d57b5a29ca06937</a></p>
]]></description><link>https://forums.ubports.com/post/88642</link><guid isPermaLink="true">https://forums.ubports.com/post/88642</guid><dc:creator><![CDATA[lk108]]></dc:creator><pubDate>Fri, 03 Oct 2025 08:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Thu, 02 Oct 2025 20:39:05 GMT]]></title><description><![CDATA[<p dir="auto">By the way in this push notifications profile the argument "@{APP_PKGNAME_DBUS}" used to filter Postal service is only used in this profile, and in app prushase (obviously a deprecated one). This is very suspicious.</p>
<p dir="auto"><a href="https://gitlab.com/search?search=%40%7BAPP_PKGNAME_DBUS%7D&amp;nav_source=navbar&amp;project_id=25344238&amp;group_id=4298794&amp;search_code=true&amp;repository_ref=main" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/search?search=%40{APP_PKGNAME_DBUS}&amp;nav_source=navbar&amp;project_id=25344238&amp;group_id=4298794&amp;search_code=true&amp;repository_ref=main</a></p>
<p dir="auto">All the other profile use variable @{APP_ID_DBUS}</p>
<p dir="auto"><a href="https://gitlab.com/search?search=%40%7BAPP_ID_DBUS%7D&amp;nav_source=navbar&amp;project_id=25344238&amp;group_id=4298794&amp;search_code=true&amp;repository_ref=main" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/search?search=%40{APP_ID_DBUS}&amp;nav_source=navbar&amp;project_id=25344238&amp;group_id=4298794&amp;search_code=true&amp;repository_ref=main</a></p>
<p dir="auto">This is probably a sign that this push-notification has been left abandoned for a while.</p>
]]></description><link>https://forums.ubports.com/post/88624</link><guid isPermaLink="true">https://forums.ubports.com/post/88624</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Thu, 02 Oct 2025 20:39:05 GMT</pubDate></item><item><title><![CDATA[Reply to Send notification locally from QT&#x2F;C++&#x2F;QML App. on Thu, 02 Oct 2025 20:35:29 GMT]]></title><description><![CDATA[<p dir="auto">Adding dbus  authorisation to <em>"org.freedesktop.Notifications"</em> and <em>"com.lomiri.hfd"</em> would solve the confinement problem. Also</p>
<p dir="auto"><a href="https://gitlab.com/ubports/development/core/apparmor-easyprof-ubuntu/-/blob/main/data/policygroups/ubuntu/1.2/push-notification-client" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/ubports/development/core/apparmor-easyprof-ubuntu/-/blob/main/data/policygroups/ubuntu/1.2/push-notification-client</a></p>
<p dir="auto">Also the filtering in this file for Postal is probably buggy as I get</p>
<pre><code>[POST] &gt;&gt;   QDBusMessage(type=MethodCall, service="com.lomiri.Postal", path="/com/lomiri/Postal/alefnode_2ewhatsweb", interface="com.lomiri.Postal", member="Post", signature="", contents=("alefnode.whatsweb_whatsweb", "{"notification":{"card":{"actions":["appid://alefnode.whatsweb/whatsweb/current-user-version"],"icon":"/opt/click.ubuntu.com/.click/users/@all/alefnode.whatsweb/icon.png","persist":true,"popup":true,"summary":"Whatsapp test"},"sound":true,"vibrate":true}}") )
[POST ERROR]  "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.483\" (uid=32011 pid=27477 comm=\"/opt/click.ubuntu.com/alefnode.whatsweb/current/bi\" label=\"alefnode.whatsweb_whatsweb_0.2.8 (enforce)\") interface=\"com.lomiri.Postal\" member=\"Post\" error name=\"(unset)\" requested_reply=\"0\" destination=\"com.lomiri.Postal\" (uid=32011 pid=3117 comm=\"/usr/lib/lomiri-push-service/lomiri-push-service \" label=\"unconfined\")"
</code></pre>
<p dir="auto">But anyway even unconfined postal does not work for me.</p>
]]></description><link>https://forums.ubports.com/post/88622</link><guid isPermaLink="true">https://forums.ubports.com/post/88622</guid><dc:creator><![CDATA[pparent]]></dc:creator><pubDate>Thu, 02 Oct 2025 20:35:29 GMT</pubDate></item></channel></rss>