sweakpl / qralarm-android

QRAlarm is an Android alarm clock application that lets the user turn off alarms by scanning the QR Code.
GNU General Public License v3.0
112 stars 10 forks source link

Option to make the alarm persistent #2

Closed BloodRaven0 closed 2 years ago

BloodRaven0 commented 2 years ago

I think there should be an option to keep the alarm after you turn it off with the qr code, so you don't have to "start" it again each day, because you might forget.

sweakpl commented 2 years ago

Hey, thanks for the suggestion!

While creating the app, I thought that persistent alarm could be problematic with QRAlarm - the user might leave the alarm scheduled and e.g. wake up in a different place than the place where their QR code is which in turn would mean that the alarm would not be possible to turn off (at least in theory ;)).

This is why I've decided to leave it as it is now - the user having control over the alarm that can go off not later than 24 hours from the moment of scheduling. This should at least try to prevent the mentioned situation.

But possibly in the future I might try to implement this functionality.

Thank You fot the feedback!

BloodRaven0 commented 2 years ago

I had not thought of that 😅

You could put a warning on the "persistent alarms" option that warns users of this situation, perhaps recommending they print out a spare qr code they could carry in their wallet or the inside of their phone case.

Another option would be to have an alternate (but not easier) way to turn the alarm off, but I have no idea what that could be, and it might go outside the scope you have for the app (for example solving math problems or something like that).

Also, goes without saying that if you were to implement persistent alarms, choosing days of the week for the alarm would be mandatory 😋

magnus-ISU commented 2 years ago

You can turn off the alarm by uninstalling the app as well I believe.

I hope this is eventually added, but I don't think its high priority as its pretty easy to tap the 'set' button after waking up.

lmgarret commented 1 year ago

What about setting a SSID for which the alarm can be recurring, and disabled if not connected to this specific wifi? Although for people putting their devices in airplane mode while sleeping this might get tricky

sweakpl commented 1 year ago

@lmgarret That's interesting but quite complex idea 😅 First, listening to connectivity changes requires the app to work constantly in the background service which is always very vulnerable to wrong background work settings and the system itself. Secondly, an option like this is VERY specific to some users (e.g. some might not have wifi enabled all the time or at all). Third thing - the option might be confusing to some people, especially for an app which I wanted to be an as simple as possible QR code alarm app.