alarm
alarm copied to clipboard
Calling alarm stop does not make the notification disappear from the status bar.
Alarm plugin version 3.1.4
Describe the bug Is it correct behavior that calling Alarm.stopAll() makes the notification disappear from the status bar?
Sometimes calling stopAll() doesn't make the notification disappear from the status bar. So, after debugging, I found a few things.
final hasAlarm = Alarm.hasAlarm(); // false
final getAlarms = Alarm.getAlarms(); // size=0
final checkAlarm = await Alarm.checkAlarm(); // null
final isRinging = await Alarm.isRinging(1); // true
The isRinging variable appears to be true. However, all notifications have already ended. Is this a bug?
AlarmSettings(
id: 1,
dateTime: DateTime.now().add(Duration(seconds: 5)),
assetAudioPath: 'assets/sound/test.mp3',
loopAudio: false,
vibrate: false,
notificationTitle: 'test',
notificationBody: "test",
enableNotificationOnKill: false,
androidFullScreenIntent: true,
)
The AlarmSettings currently in use.
**DeviceInfo This only happens on Android. Does not occur on IOS. On Android, stopAll() doesn't seem to stop notifications properly.
**Additional After further testing, stop(1) correctly removes notification 1. But stopAll() doesn't work.