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 keep my app runs in background
QtWS25 Last Chance

How to keep my app runs in background

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
iosandroidservicebackground
2 Posts 2 Posters 2.5k 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.
  • T Offline
    T Offline
    tansgumus
    wrote on 8 Apr 2018, 15:56 last edited by
    #1

    Hi,

    I want to build an app using Qt Quick but before start the coding I want to be sure how can I keep my app runs in background just like Skype, Whatsapp...etc?

    My app is for map navigation.

    I found a very brief explanation about how to run Android apps as a service but I couldn't find anything about iOS!

    J 1 Reply Last reply 9 Apr 2018, 04:59
    0
    • T tansgumus
      8 Apr 2018, 15:56

      Hi,

      I want to build an app using Qt Quick but before start the coding I want to be sure how can I keep my app runs in background just like Skype, Whatsapp...etc?

      My app is for map navigation.

      I found a very brief explanation about how to run Android apps as a service but I couldn't find anything about iOS!

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 9 Apr 2018, 04:59 last edited by
      #2

      Hi @tansgumus ,

      Apple is very conservative in allowing developers long term background threats/events.

      Taken from the Apple docu:

      Implementing Long-Running Background Tasks
      For tasks that require more execution time to implement, you must request specific permissions to run them in the background without their being suspended. In iOS, only specific app types are allowed to run in the background:
      
      Apps that play audible content to the user while in the background, such as a music player app
      Apps that keep users informed of their location at all times, such as a navigation app Apps that support Voice over Internet Protocol (VoIP) Newsstand apps that need to download and process new content
      Apps that receive regular update from external accessories
      Apps that implement these services must declare the services they support and use system frameworks to implement the relevant aspects of those services. Declaring the services lets the system know which services you use, but in some cases it is the system frameworks that actually prevent your application from being suspended.
      

      That said, a navigation app should fall in this category. But as it is, you're bound to do it in OBjective-C but its relative easy to include ObjectiveC code in Qt.


      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

      1/2

      8 Apr 2018, 15:56

      • Login

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