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. Background process on IOS
Forum Updated to NodeBB v4.3 + New Features

Background process on IOS

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 4 Posters 3.6k 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.
  • D Offline
    D Offline
    driskiou
    wrote on last edited by
    #1

    Hi all,
    I'm testing a Qt application (5.1) on an IOS device. I created a simple thread which prints a message every x seconds. Unfortunately this thread doesn't work when my application goes to the background. I have the same trouble with a no Qt application on IOS.
    So, is there any way to deal with a thread in background?
    Thanks!

    1 Reply Last reply
    0
    • C Offline
      C Offline
      CuteiOS
      wrote on last edited by
      #2

      Threads will run in the background by default (unless you set the "Application does not run in background" property in Xcode).

      You won't get screen or debug output from your thread when it's in the background, so maybe that is your problem.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        driskiou
        wrote on last edited by
        #3

        Thanks for your reply. I tried to increment an integer in this QThread every second but the value does not change in background. Nothing happened!
        I did not enable "Application does not run in background" option in my plist's file.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          ilisashka
          wrote on last edited by
          #4

          Is this trouble solved?
          I have same problem but in main thread.

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

            Have you found the solution?
            In iOS I see all threads will be stopped when the app goes in background.
            in Android only the main thread will be stopped, the other threads can work.

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

            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