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

Can be force closed #20

Closed Barmem closed 1 year ago

Barmem commented 1 year ago

Maybe make it autolaunch?

magnus-ISU commented 1 year ago

It can also be uninstalled. At that point the user is being hostile to the application, and apps shouldn't try to implement hacks to work around being killed that way.

Barmem commented 1 year ago

on my phone force closing is literally holding back button

sweakpl commented 1 year ago

As @magnus-ISU pointed out, the app cannot work against the system and if the user makes the app force-stop then it won't be re-launched without the user explicitly doing so. QRAlarm has a way of detecting if the app was improperly shutdown but that functionality is working only if the user re-launches the app after shutdown and is there to ensure the data consistency to prevent weird UI behavior.

@Barmem if your phone has some strict policies about application lifecycle then please, refer to the QRAlarm Guide in the settings of the app. There is a link to a site that might help you mitigate the behavior of your phone.

mizzunet commented 1 year ago

@sweakpl Perhaps make ability to enable Device Admin which make the app neither be uninstalled not force closed

Screenshot_20230404-013746