<?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[Can someone help me with the provided Qt notification code?]]></title><description><![CDATA[<p dir="auto">I used the android Qt notification example code provided to add notifications to my app.<br />
I created an android service that runs in the background.<br />
I now have an app that can produce android notifications and has a service running in the background.</p>
<p dir="auto">My problem now is that I cannot issue notifications from the service code!<br />
In the C++ app code i simply do this to get a notification:</p>
<pre><code>NotificationClient *notificationClient = new NotificationClient(&amp;engine);
 s="App Hi!";
 ss=QString::fromStdString(s);
notificationClient-&gt;setNotification(ss);
</code></pre>
<p dir="auto">But, if I do the same from the C++ service code, nothing happens!</p>
]]></description><link>https://forum.qt.io/topic/80044/can-someone-help-me-with-the-provided-qt-notification-code</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 08:46:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/80044.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Jun 2017 11:53:44 GMT</pubDate><ttl>60</ttl></channel></rss>