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. In background running android app sending notification
Forum Updated to NodeBB v4.3 + New Features

In background running android app sending notification

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.2k Views 1 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.
  • M Offline
    M Offline
    MathiasH
    wrote on last edited by
    #1

    hi
    ive got a question. Am I with Qt able to write an app that is running in background and sends at 7:00 am a notifiction
    that the user sees informationin his notification bar at top?

    generell is there a posibility that my app runs in background?

    thanks for answering!
    Mathias

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #2

      I have the same problem.
      The program calls correctly the notification api but I see the notifications only if I restore the program.
      If minimized doesn't work immediately but when it is full screen I see the notification immediately.
      Have you found the solution?

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      1 Reply Last reply
      0
      • F Offline
        F Offline
        feldifux
        wrote on last edited by
        #3

        Hi,
        yes you can, by using this plugin for local push notifications that works for iOS & Android.

        You can find a Github example here.

        And here's a sample QML code:

        import QtQuick 2.1
        import QtQuick.Window 2.1
        
        import VPlayPlugins.notification 1.0
        
        Window {
          NotificationManager {
        	id: notificationManager
          }
        
          Notification {
        	id: idleNotification
        
        	notificationId: "idleNotification"
        	message: "Anyone here? Haven't seen you in a while..."
        	timeInterval: (24 * 60 * 60) // in seconds
          }
        
          Component.onCompleted: {
        	// Cancel old notification if scheduled
        	notificationManager.cancelNotification(idleNotification.notificationId)
        	// Schedule idleNotification
        	notificationManager.scheduleNotification(idleNotification)
          }
        }
        

        Cheers, Chris

        Founder of Felgo SDK - http://felgo.com/qt

        Felgo simplifies

        • Mobile App Dev with Qt esp. iOS & Android
        • 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

        • Login

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