Skip to content

alarm listener doesn't fire if app is in foreground (Android only) #311

Closed
@ApplySci

Description

@ApplySci

Alarm plugin version
5.0.0-dev.4 and 4.1.1

Describe the bug
If the app is in the foreground when an alarm goes off, I get a notification. But the alarm listener doesn't get triggered. I'm using Alarm.ringStream.stream.listen(openAlarmPage), but that doesn't get triggered when an alarm starts ringing. In the debug console, I do see Flutter was notified that alarm 1 is ringing.

Additional context
I am using firebase cloud messaging and handlers for notifications from that, but they're not firing when an alarm sounds, either (not that I'd expect them too - I'm just adding this in case there's some weird collision there)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions