forrestguice / SuntimesWidget

Android app (and widget collection) that displays sunlight and moonlight times.
GNU General Public License v3.0
339 stars 61 forks source link

Alarm above lock screen #802

Open foxjaw opened 4 months ago

foxjaw commented 4 months ago

Describe the bug Alarm dialog seems to not appear on top of lock screen.

To Reproduce Schedule an alarm. Observe the dialog. We can't access the dialog unless we unlock the screen. Only the owner who can unlock the device, can dismiss the dialog.

Expected behavior Alarm Dialog should be on the top of lockscreen like how stock clock app works.

Version Info:

forrestguice commented 3 months ago

I think this is related to Android 14 behavior changes. I observe slightly different behavior on earlier versions where instead the alarm dialog initially shows over the lockscreen, and then subsequent attempts to show it again require unlocking the device.

Apparently a permission was introduced (USE_FULL_SCREEN_INTENT) but the app doesn't currently declare it. I think Android 14 makes its use mandatory, while earlier versions would grant it automatically. I'm guessing this permission can be toggled manually somewhere in settings (but I've yet to test it - the emulator refuses to launch for some reason).

foxjaw commented 3 months ago

Unfortunately the only additional permission I see is "Power off Alarms".

foxjaw commented 2 months ago

Which version will this milestone visible ?

forrestguice commented 2 months ago

Those changes will be in v0.16.0, which I'm preparing now. It seems they appear here because I pushed that branch recently.

forrestguice commented 1 month ago

This is now available on F-Droid. The app declares the missing permission but you'll still need to go to Settings -> Alarms -> Full-Screen Notifications to grant it. In a future release the app will detect that its off and show a warning. Hopefully this issue is actually resolved (fingers crossed).

foxjaw commented 1 month ago

Enabled. Still doesn't seem to override lockscreen.

foxjaw commented 1 month ago

I think it needs Display over other apps permission I guess ?