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. Qt push notification doesnt work in background
QtWS25 Last Chance

Qt push notification doesnt work in background

Scheduled Pinned Locked Moved Mobile and Embedded
qt 5.4.1androidiosqt applicationqtpluginqtcreator
5 Posts 3 Posters 4.4k 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.
  • B Offline
    B Offline
    Buleron
    wrote on 30 Apr 2015, 08:59 last edited by Buleron
    #1

    I use Qt push notification , but when i close my app push notification doesn't work ??
    if exist any way in c++ to call qml in background ?

    A 1 Reply Last reply 5 May 2015, 07:37
    0
    • B Buleron
      30 Apr 2015, 08:59

      I use Qt push notification , but when i close my app push notification doesn't work ??
      if exist any way in c++ to call qml in background ?

      A Offline
      A Offline
      alexvplay
      wrote on 5 May 2015, 07:37 last edited by
      #2

      @Buleron Can you explain a little bit more which push notifications you are using and on which platform? As of now there is no built-in support for native push notifications for iOS and Android afaik.

      CoFounder of Felgo - https://felgo.com/qt

      Felgo simplifies Mobile App & Game Development with Qt
      What others say: Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Buleron
        wrote on 5 May 2015, 09:37 last edited by Buleron 5 May 2015, 09:53
        #3

        @alexvplay

        i use Qt notifier at Qt examples , Im using notificationClient on load main.qml calling from mainWindows.cpp
        as schedule ...but it doesnt work in background , when i close my app notification doesnt work ,
        do i need to use GCM or any WebService , or any code for background ?
        how Qt notifications work?

        A 1 Reply Last reply 5 May 2015, 14:23
        0
        • B Buleron
          5 May 2015, 09:37

          @alexvplay

          i use Qt notifier at Qt examples , Im using notificationClient on load main.qml calling from mainWindows.cpp
          as schedule ...but it doesnt work in background , when i close my app notification doesnt work ,
          do i need to use GCM or any WebService , or any code for background ?
          how Qt notifications work?

          A Offline
          A Offline
          alexvplay
          wrote on 5 May 2015, 14:23 last edited by
          #4

          @Buleron The Qt Notifier example is only a demo implementation for using native code but does not support much more functionality, like sending or receiving notifications when the app is in the background or closed.

          There are two use cases for notifications:

          1. For local scheduled notifications (best suited for timer apps or apps which should trigger a notification in the near future on their own) you might need to schedule the notifications in your Java code to trigger in the future and also might need a receiver class defined in your AndroidManifest.xml for opening the app after a user clicks a notification.

          2. For remote push notifications (best suited for social apps or any other notifications which should be triggered from outside) you need to implement the GCM service or use any of the available push backends like Parse.

          If you're not familiar with native code functionality you might also have a look at our V-Play plugins, we offer both, a local notifications plugin and a Parse push notification plugin.

          CoFounder of Felgo - https://felgo.com/qt

          Felgo simplifies Mobile App & Game Development with Qt
          What others say: Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Time Markov
            wrote on 9 Dec 2015, 17:20 last edited by
            #5

            @alexvplay I have used V-play plugins with QML application and all works good, but i want somehow to have oportunity user to disable receiving notification on his mobile when he install my application, i have try with Parse property:

            enabled : bool

            to be false, but user still received notifications...

            So please can you give advice how i can make receiving of notification on mobile device where my app is installed to be configurable, i.e. user to have option to turn On or Off receiving notifications.

            Thanks in advance

            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