Background process on IOS
-
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! -
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.
-
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. -
Is this trouble solved?
I have same problem but in main thread. -
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.