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. Android Notifications in background

Android Notifications in background

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 359 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.
  • S Offline
    S Offline
    Sason
    wrote on last edited by
    #1

    Hi, I have an application for Android in C++ in QT and server TCP on RaspberrPi in Python. Client and server connets and generally everything is OK, but I would like to get notifications from serwer... I use an example from [https://doc.qt.io/qt-5/qtandroidextras-notification-example.html](link url) and I've found on somke forum the way how to do it i C++... It/s working when I for example add function to button, but I would like to have notification in background, when something ihappens on server and I don't have to run application on android.

    I found something about services on QT site, but I can;'t understand it :/ And it's in Java generraly.

    Could you help me?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      This example shows local notifications. If I understand things correctly, you'd rather like push notifications, correct ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sason
        wrote on last edited by
        #3

        Yes. For example I want to get notification when someone else connect to server... Something like that.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          In that case you have to enable push notifications at the application level but also implement it in your server.

          Note that push notification are currently not implemented in Qt itself though Felgo has something for it, so you might want to check with them.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sason
            wrote on last edited by
            #5

            Ok, thanks. I will try to do something with this.

            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