Open OmarNofal opened 2 months ago
It's planned in sha' Allah, just that unfortunately, life gets in the way sometimes.
No, it is okay. I understand.
I can work on this feature, would that be okay with you?
sure, no problem. let's start with a reminders panel in settings, with some defaults that are there but disabled by default (reminder on Friday to read sura Kahf, reminder each day to read wird).
person using the app can edit the times of those and enable/disable them. Let's build it using Compose and make sure the code is in a new module. in phase 2 we can allow adding custom reminders, deleting reminders, etc.
Great.
So I have come up with the following steps:
:feature:reminders:
There are still some missing pieces that I am thinking about:
~Also I am getting the following error when building, should I download something?
java.nio.file.AccessDeniedException: C:\Windows\sqlite-3.45.2.0-7930c5d7-092c-43ed-987f-7a80973d6eee-sqlitejdbc.dll.lck
~
(never mind, I fixed this error by running as administrator)
No need for a worker also - you can just request alarms permission when someone goes to enable the setting and set a precise alarm.
Don't you think requesting the alarms permission to send basic notifications would be too much?
I though using a worker would make it easier to handle stuff like persisting Workers when the device reboots and also observing the Worker states using flows which makes it easier to work with in Compose. We can also use setExpedited
to make it behave like an exact alarm too
A worker would do the job but this is literally an alarm so using alarms makes sense to me for it.
We can avoid the permission request if we make the time approximate instead of exact, within a 15 minute window.
It would be great if the app had the ability to send reminders to do the daily werd. Also would be great to have the app remind you to read surah Al-Kahf every Friday.
There is already feature request open but it is too old (2011).
I can start working right away to implement this feature. Please tell me if it is ok.