Background process on IOS
-
wrote on 8 Jul 2013, 09:15 last edited by
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! -
wrote on 8 Jul 2013, 14:05 last edited by
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.
-
wrote on 9 Jul 2013, 08:55 last edited by
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. -
wrote on 19 Feb 2014, 14:56 last edited by
Is this trouble solved?
I have same problem but in main thread. -
wrote on 2 Jun 2015, 07:42 last edited by
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.