Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] alarms/timers sometimes don't get triggered at all #89

Open
7 tasks done
throwaway242685 opened this issue Aug 22, 2024 · 16 comments
Open
7 tasks done

[bug] alarms/timers sometimes don't get triggered at all #89

throwaway242685 opened this issue Aug 22, 2024 · 16 comments
Labels
ASAP Issue needs to be fixed as soon as possible. bug Something is not working

Comments

@throwaway242685
Copy link

throwaway242685 commented Aug 22, 2024

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.0.0

Affected Android/Custom ROM version

Android 9

Affected device model

Samsung Galaxy A10

How did you install the app?

GitHub releases

Steps to reproduce the bug

  1. having alarms/timers is enough to reproduce this bug.

Expected behavior

they should work.

Actual behavior

there are times when they don't get triggered at all.

Screenshots/Screen recordings

No response

Additional information

SimpleMobileTools/Simple-Clock#453

@throwaway242685 throwaway242685 added bug Something is not working needs triage Issue is not yet ready for PR authors to take up labels Aug 22, 2024
@Aga-C
Copy link
Member

Aga-C commented Aug 22, 2024

What exactly do you mean?

  1. The screen turns on, you can turn off or snooze the alarm, but there's no sound and no vibration.
  2. At the time the alarm should fire, there's no sound, no vibration and also the screen doesn't turn on. After unlocking the phone, there's a full-screen notification with sound and vibration.
  3. Similar as above, but after unlocking the screen, there's a full-screen notification without sound and vibration.

@Aga-C Aga-C added question Further information is requested waiting for author If the author does not respond, the issue will be closed. Otherwise, the label will be removed. labels Aug 22, 2024
@throwaway242685
Copy link
Author

throwaway242685 commented Aug 22, 2024

you get a notification, but the sound/vibration doesn't come at all.

I've actually been testing this issue with timers and with the screen on, so this is not related to the screen being turned off or anything like that.

@github-actions github-actions bot removed the waiting for author If the author does not respond, the issue will be closed. Otherwise, the label will be removed. label Aug 22, 2024
@Aga-C
Copy link
Member

Aga-C commented Aug 22, 2024

Please try with the screen turned off.

@throwaway242685
Copy link
Author

throwaway242685 commented Aug 22, 2024

EDIT: okay, I edited all my comment.

Please try with the screen turned off.

only alarms have sound/vibration when the screen's turned off.

with the screen on, both of them lack sound/vibration.

@throwaway242685 throwaway242685 changed the title [bug] alarms/timers don't have sound/vibration if phone's on silent mode [bug] timers don't have sound/vibration if phone's on silent mode Aug 22, 2024
@throwaway242685 throwaway242685 changed the title [bug] timers don't have sound/vibration if phone's on silent mode [bug] alarms/timers don't have sound/vibration if phone's on silent mode Aug 22, 2024
@throwaway242685
Copy link
Author

are you able to reproduce that on silent mode?

@Aga-C
Copy link
Member

Aga-C commented Aug 22, 2024

I've tested on three phones (Android 10, 13 and 14, all non-rooted, on silent mode), and here are my findings.

For timers:

  • On Android 13 and 14, no matter whether the screen is turned on or off, timers have sound and vibration.
  • On Android 10 I can reproduce the same behavior as you have.

For alarms:

  • On all three phones, sometimes, when the screen was turned off, alarms didn't have sound and haven't turned on the screen. I was mostly able to reproduce it with alarms set for a very short period of time (like two minutes from now). After turning on the screen, the full-screen notification appeared along with sound and vibration.
  • On Android 13 and 14, when the screen is turned on, there's an alarm's notification, but there's no sound and no vibration.
  • On Android 10, when the screen is turned on, there's an alarm's notification with vibration, but without a sound.

@Aga-C Aga-C removed question Further information is requested needs triage Issue is not yet ready for PR authors to take up labels Aug 22, 2024
@throwaway242685
Copy link
Author

throwaway242685 commented Aug 22, 2024

if you're able to reproduce this bug on Android 14 then we're doomed, lol.

perhaps the easiest way to fix this bug would be looking at the source code of other FOSS clock apps, and compare what each app exactly does to trigger the alarms.

https://f-droid.org/packages/com.best.deskclock/

this one works well for me.

@Aga-C Aga-C added the ASAP Issue needs to be fixed as soon as possible. label Aug 23, 2024
@benstigsen
Copy link

I can confirm this is an issue for me as well.
Showed up late to work one day, because it just didn't ring.

@ThurahT
Copy link

ThurahT commented Oct 13, 2024

I would like to chime in with some additional details as well. I wasn't really up to date with the whole SMT debacle when it happened and I just caught up a week ago and replaced all the SMT I used with fossifyorg instead. I am really glad it got forked, make no mistake. But I am not fond of the alarm not waking me and totally ruining my day.

With the SMT clock I could put my mobile on mute/silenced and sleep soundly and the alarm would go off as expected. So, something must have changed code-wise since the fork.

I'm on Android 11 on a motorola one phone. I have checked all the settings, thrice, and the alarm should go off. But it won't. I DO get an notification though. A silent one (since the phone is muted). That when I pull it down and click on it WILL sound the alarm. WHEN I look at the notification. Alarm will work as expected if the phone is unmuted. Screen locked or not. Doesn't matter.

As it is now the alarm is totally useless since you most often than not set it at night. Timer is fine since you're usually awake and unmuted when you time something.

So my suggestion would be to cross check the SMT one and see diffs regarding muted phone (dys)function.

@omega3
Copy link

omega3 commented Oct 22, 2024

I have this issue on LineageOS 20 (Android 13):

At the time the alarm should fire, there's no sound, no vibration and also the screen doesn't turn on. After unlocking the phone, there's a full-screen notification with sound and vibration.

The phone wasn't in silent / muted mode. Default clock on LineageOS 20 works fine.

@naveensingh
Copy link
Member

Welp, I missed my alarm today.

@throwaway242685
Copy link
Author

throwaway242685 commented Nov 23, 2024

was your phone on silent/vibration mode?

if it wasn't, then I should probably change the title of this issue. 🥴

@naveensingh
Copy link
Member

was your phone on silent/vibration mode?

Yes.

@throwaway242685 throwaway242685 changed the title [bug] alarms/timers don't have sound/vibration if phone's on silent mode [bug] alarms/timers sometimes don't get triggered at all Nov 24, 2024
@taltamir
Copy link

taltamir commented Dec 1, 2024

My alarm is not working either. I am using android 14 on a motorolla edge (2022).
I tried with the screen on/off. and repeatedly setting 1 minute alarms.
I am not in do not disturb.

I tried forcibly giving it permission to ignore DND. but it won't let me do so, seemingly as the app does not list those as desired.


I managed to figure it out.
By default notification permissions were off and the app does not request them.
Only when I manually enabled notification permissions for the fossify clock app did the alarm go off.

If notification permissions is disabled for the app, it should say as much on the alarm page. with a "click here to enable" that takes you to the relevant settings page.

@Aga-C
Copy link
Member

Aga-C commented Dec 1, 2024

@throwaway242685 Do you have this problem also without silent mode? Because you've edited the issue after Naveen's comment, while Naveen encountered it on silent mode.

@throwaway242685
Copy link
Author

throwaway242685 commented Dec 2, 2024

hi, I changed it because of this comment: #89 (comment)

I have this issue on LineageOS 20 (Android 13).
The phone wasn't in silent / muted mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASAP Issue needs to be fixed as soon as possible. bug Something is not working
Projects
None yet
Development

No branches or pull requests

8 participants
@omega3 @taltamir @ThurahT @benstigsen @naveensingh @throwaway242685 @Aga-C and others