Qt5 running in the background on Android
As you know, by default Qt5 application doesn't run when it's in the background on Android because the Qt main thread is blocked. Any background processing is on hold until your Qt5 application goes to the foreground.
In the AndroidManifest.xml, by modifying
<meta-data android:name="android.app.background_running" android:value="true"/>
it will allow it to run in the background but at times it results in crashes since the application still tries to draw after receiving Qt::ApplicationSuspended() signal.
I would like my application to be able to process and handle events while it's in the background but there's no clear way.
- Will Digia try to fix this issue by allowing Qt application to run in the background? Maybe non-UI tasks to run in the background?
- If not, does anyone have a good design for this issue? Maybe 2 Qt applications? One running Qt application as a service and the other one as a normal Qt Quick application?
Any help is appreciated.