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. Push Notification - Background app
Forum Updated to NodeBB v4.3 + New Features

Push Notification - Background app

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 4 Posters 1.6k Views 3 Watching
  • 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.
  • C Offline
    C Offline
    Cinohee
    wrote on last edited by
    #1

    Hello. There is two question:
    Q1 Notification:
    I do not want send notification from google, Is it only the way?
    I want to show notification to user when app is in back ground
    Is there any resource help me around this problem?

    Is there any help to show notification on android?

    Q2: Is there any way to run app on background ? App stay running

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

      Hi,

      1. Are you looking for something like described here ?

      2. Do you mean like a service ?

      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
      • GTDevG Offline
        GTDevG Offline
        GTDev
        wrote on last edited by
        #3

        You can also have a look at V-Play Engine for qt-based mobile apps and games, which offers ready-to-use plugins for notification services like Google Cloud Messaging, One Signal or Local Push Notifications.

        The plugins work cross-platform on iOS and Android and are usable directly from QML:

        import VPlayApps 1.0
        import VPlayPlugins 1.0
        
        App {
          // ...
        
         GoogleCloudMessaging {
           //  ...
           onNotificationReceived: {
             console.debug("Received notification payload is", JSON.stringify(data))
           }
         }
        }
        

        Best,
        GTDev

        Senior Developer at Felgo - https://felgo.com/qt

        Develop mobile Apps for iOS & Android with Qt
        Felgo is an official Qt Technology Partner

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vlada
          wrote on last edited by
          #4

          I have a similar question. I want to show toast notifications on Android. It is very easy to implement using this guide. Unfortunately it only works if I call the QAndroidJniObject::callStaticObjectMethod from the main application.

          If I call the notifications from service part, the service crashes. Why is this happening? How can I make it work even from service?

          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