Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can someone help me with the provided Qt notification code?
Qt 6.12 LTS is out! See what's new in the release blog

Can someone help me with the provided Qt notification code?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 422 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mena
    wrote on last edited by
    #1

    I used the android Qt notification example code provided to add notifications to my app.
    I created an android service that runs in the background.
    I now have an app that can produce android notifications and has a service running in the background.

    My problem now is that I cannot issue notifications from the service code!
    In the C++ app code i simply do this to get a notification:

    NotificationClient *notificationClient = new NotificationClient(&engine);
     s="App Hi!";
     ss=QString::fromStdString(s);
    notificationClient->setNotification(ss);
    

    But, if I do the same from the C++ service code, nothing happens!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved