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. how to run in background on mobile
Forum Updated to NodeBB v4.3 + New Features

how to run in background on mobile

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

    hi
    i want to run an application in the background, it should act as crontab to play reminders, it should run on desktop and ios
    should i use qprocess and start as detached ? or what is the best way to do it?
    how can i ask for the priveledge needed?

    thanks

    J.HilkJ 1 Reply Last reply
    0
    • S SherifOmran

      hi
      i want to run an application in the background, it should act as crontab to play reminders, it should run on desktop and ios
      should i use qprocess and start as detached ? or what is the best way to do it?
      how can i ask for the priveledge needed?

      thanks

      J.HilkJ Online
      J.HilkJ Online
      J.Hilk
      Moderators
      wrote on last edited by J.Hilk
      #2

      hi @SherifOmran

      you can do that rather easy in android, using a background process, see this blog post of KDAB for a working example:

      article:
      https://www.kdab.com/qt-android-create-android-service-using-qt/
      files:
      https://github.com/KDAB/android

      On iOS, that's a different matter, you'll actually have to request permission from Apple for that. Once you have that, I'm unsure how to proceed from there. You'll have to do it in native Objective-C code as there's definitely no Qt API for it


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

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

        Hi,

        To add to @J-Hilk , iOS and Android both have calendar API that allows to setup reminders that will show notifications. Is that kind of reminder what you are looking for ?

        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
          SherifOmran
          wrote on last edited by
          #4

          @SGaist : yes these types of reminders what i am looking for, but which api is it? do you have a working example for it?

          thank you

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

            Not directly but you have this stack overflow answer that covers the iOS API in Objective-C and for Android, there's an example in the QtAndroidExtras module.

            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

            • Login

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