gdelataillade / alarm

A Flutter plugin to easily manage alarms on iOS and Android
https://pub.dev/packages/alarm
MIT License
127 stars 78 forks source link

Show alarm on full screen like system alarm #178

Closed sagar1garg closed 6 months ago

sagar1garg commented 6 months ago

System alarms are shown on full screen even when the screen is locked making it easy for a user to snooze or stop the alarm.

Alarm plugin has a full screen display UI but notification on Android is the standard size. Can we make it to show on the entire screen (similar to the example UI) when screen is locked similar to system alarm?

gdelataillade commented 6 months ago

Hi @sagar1garg

On Android, if you want the notification to be full screen you have to enable androidFullScreenIntent parameter and the screen has to be locked. I chose to not show the full screen notification when device is unlocked because it would be too intrusive for your users. Imagine you're watching a video or writing a message and you get interrupted by a full screen alarm notification... I believe a simple notification is enough don't you think?

I'm closing the issue then but feel free to ask if you have any question.