orgzly-revived / orgzly-android-revived

Outliner for taking notes and managing to-do lists
https://www.orgzlyrevived.com
GNU General Public License v3.0
593 stars 38 forks source link

Alarm clock not working #49

Open DomeDrake opened 10 months ago

DomeDrake commented 10 months ago

Thank you for all your efforts to keep Orgzly in developement!

I have encountered an issue, the alarm clock feature "Use alarm clock: For reminders with the time fo day set" doesn't work on my phone. (Android 12)

In both v1.8.10 and v1.8.11 the push notification appears as usual. Also in both versions I can see my alarm clock icon appearing in the android status bar, next to my wifi icon etc., when I set a time of day for the scheduled time of the task, meaning something is happening, but my actual alarm never rings.

This issue has already been mentioned in Orgzly #654 for Orgzly, however I wanted to mention it in the revived project as well.

Again, I'm incredibly happy to see you all do the work you're doing, thank you!

appletalk commented 6 months ago

Same issue here, on Android 14 (GrapheneOS). I see a notification on my lock screen with the next upcoming alarm which is correct, however I only get the push notification at the time specified not an alarm.

amberin commented 5 months ago

Open the "app info" screen for the app (can be reached by long-clicking the app icon) and scroll to the bottom. You should see the "alarms & reminders" permission there, make sure it's checked. I recently discovered that tests are failing on Android 14 because this permission is no longer granted by default. I will fix this by adding some permission checks in the code.

DomeDrake commented 5 months ago

On Android 12 (OxygenOS 12.1) using Orgzly Revived 1.8.19, when looking at the App permissions, I only see the "Storage" permission:

Looking at "all permissions" (by clicking on the three dots in the top right corner in the screenshot above), there is a permission called "android.permission.SCHEDULE_EXACT_ALARM":

Unfortunately, with the setup you can see in my screenshots, granting all possible permissions afaik, the alarm is still not successfully working, like before only the icon in the status bar appears (which is hidden in the screenshots).

If I can help by providing any more information, please do let me know! I'm ever so grateful for your continued work on Orgzly Revived! :)

jamal4hm3d commented 2 months ago

Hi,

Is there any update on this.

I am on android 13 and i am also facing same issue.

Can someone please help with this.

Thanks.

amberin commented 2 months ago

I wonder what exactly the intended behavior is and if this has ever worked - it doesn't seem that way from the original issue.

jamal4hm3d commented 2 months ago

Hi @amberin,

For me, Some times i will miss the notification. So, i just want a loud remaindrer that will stop once i close it.

I thought the option would do that but it is not working.

If possible, Please look into this.

I really appreciate this project.

Thanks.

amberin commented 2 months ago

Yes, I understand the intended use case, and it seems very useful. I'm just trying to understand if the current code has ever worked as intended, because I can't find any tests of this feature, so I'm not sure where to look for the bug(s) that is causing it to fail.