Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.11.2, 5.12.0 Alpha, 5.12.1
-
-
8880ef79311d283a1357ca0c14be6e56281ba5f0 (qt/qtbase/5.12)
Description
If an application has a foreground service (with notification) and the activity is closed, when trying to start the activity by clicking notification, application freezes. Steps to reproduce the problem:
1) Start application
2) In Android task manager close the application (service is still running)
3) Click the service notification
Expected behavior: Application will start.
Actual behavior: Application freezes right after start, even onCreate function of my activity is not executed.
It works correctly in Qt 5.9 and 5.10. Since 5.11 the behavior is broken as explained above.
I created a test application to demonstrate the bug. It is a slightly modified example of android service. Please note that while compiling the example with Qt older then 5.11.2, you will run into QTBUG-69755 and will need to use the workaround for APK path.