[Android] Call qml function on cpp signal while app is paused/suspended/blocked.
Unsolved
Mobile and Embedded
-
Android related. Let's say there is an CPP class in which there is a signal
eventReceived()
. An instance of this class was created in QML likeMyClass { id: myClass function onEventReceived() { console.log("Event received") } }
Everything works great. Next, lock the phone screen or minimize the application and emit a signal. All the code written in the c++ part works (let's say you have some code before the emit), but as soon as the qml code should start executing, everything stops. And this code block will only start executing when the application is opened again (resumed).
Somewhere I can find some kind of behavior configuration or in which direction should I dig?