[solved] Timer in android doesn't trigger with screen turned off
My timer is set up to trigger an event after 5 minuts. If device screen is on or device itself is connected to my laptop via usb -- it works. I can hear a sound after 5 minuts.
When you disconnect phone from laptop, screen is off after timeout I can hear no sound after scheduled 5 minuts.
Is this an android eventloop issue?
I have tried to expose QTimer object to QML but it behaves the same way.
How do I solve this issue? Would wrapping QTimer into worker thread helps here?
Is the only way to do it is to create android service and connect it to my app?
I have added PARTIAL_WAKE_LOCK management using androidextras and it works now.