you-apps / ClockYou

Privacy focused clock app built with MD3
https://you-apps.net
GNU General Public License v3.0
446 stars 30 forks source link

Timer not ringing after the phone locks #359

Open markbara-git opened 1 month ago

markbara-git commented 1 month ago

Steps to reproduce

  1. Set timer for 15:00 minutes
  2. Go back to home and leave the phone unattended
  3. After 15:00 the phone don't ring
  4. The notification bubble keeps counting backwards and you have to force stop the app to make it disappear. Tested On Motorola Edge 50 Pro with disabled power saver and with app full access to the battery.

Expected behavior

The timer should ring even when the phone is locked.

Actual behavior

The phone not ringing after the timer reached 0:00, instead the notification bubble starts counting backwards and you have to force stop the app.

Clock You version

8.0 from F-Droid

Android version

Android 14

Other details

Screenshot_20240723-123938_Microsoft Launcher Screenshot_20240723-123957_Clock You

Acknowledgements

czarnyckm commented 1 week ago

Maybe missing permission <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />

flux77 commented 1 week ago

@czarnyckm That permission exists: https://github.com/you-apps/ClockYou/blob/v8.0/app/src/main/AndroidManifest.xml#L9

https://github.com/you-apps/ClockYou/blob/e6097b1659029d22a4dd9dc16b6ca6fc84639cc2/app/src/main/AndroidManifest.xml#L9

flux77 commented 1 week ago

I am also experiencing this issue in Clock You version 8.0 (from F-Droid). My device is Samsung Galaxy A15 running Android 14.

In addition to this issue with the timer, when the screen is locked, the alarm clock does not ring or end up ringing long after the time that I have set. I wonder if that alarm clock problem could be related to this timer issue. @markbara-git Do you have similar issues with your alarms?

flux77 commented 1 week ago

It might be instructive to compare the permissions in Clock You's app manifest against another open source Android alarm clock app such as Fossify Clock, which rings its timers and alarms as expected on my device (Samsung Galaxy A15 running Android 14).

Compare:

I hope that this bug gets fixed soon. Otherwise Clock You is not usable for its intended purpose (i.e. timer, alarms) on Android 14.

czarnyckm commented 1 week ago

I use previous clock you version 7.1 without any issues with Android 14

markbara-git commented 6 days ago

@flux77 It seems that in my case the alarm works properly. The problem is with the timer.

porkmanager commented 2 days ago

I have the same issue with 8.0 from F-Droid. And sometimes the timer is hanging while it runs.

Tried 7.1 and the timer runs properly for me