Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Can someone help me with the provided Qt notification code?
Forum Updated to NodeBB v4.3 + New Features

Can someone help me with the provided Qt notification code?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 308 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 Extensions
    • Unsolved