Closed msh-nayan closed 1 year ago
Hello @msh-nayan,
Thanks for your interest in the plugin.
Regarding your concern, it's important to note that on iOS, Flutter code typically cannot execute once the app has been backgrounded for more than 30 seconds. The intended function of this listener callback is to execute code when the app transitions back to the foreground.
If there's anything more you'd like to know or any other aspect of the issue you'd like to discuss, please feel free to ask and reopen the issue.
Alarm plugin version alarm: ^1.2.2
Describe the bug To run some code when alarm starts ringing, we've implemented
Alarm.ringStream.stream.listen((_)
but it does not triggered when the application is on background.Example scenario: If we set alarm on 20:00, - If we remain on the app (if app is in foreground), then alarm is triggered properly &
Alarm.ringStream.stream.listen((_)
is triggered as expected - If we exit from the app (by pressing HOME button of device) and keep the app on background, then then alarm is triggered properly butAlarm.ringStream.stream.listen((_)
is NOT triggered, hence can't do specific tasks on that scenario - If we open the app after passing alarm time, thenAlarm.ringStream.stream.listen((_)
is triggeredN.B. I'VE TESTED THIS on iOS 8
To Reproduce Steps to reproduce the behavior:
subscription ??= Alarm.ringStream.stream.listen((alarmSettings) { debugPrint('subscription >> alarm_settings >> ${alarmSettings.id} >> ${alarmSettings.toString()}'); });