ios without notification receive move to ring screen
Closed this issue · 7 comments
ringSubscription ??= Alarm.ringStream.stream.listen(
(alarmSettings) {
DateTime dateTime1 = DateTime.now();
Duration difference = dateTime1.difference(dateTime);
print("object ==> $difference ${difference.inSeconds}");
print("notification_payload----");
Get.to(() => RingScreen(
alarmSettings: alarmSettings,
isDirectShow:
true, // Set as true if the time matches exactly (does not depend on seconds)
));
updateSubscription ??= Alarm.updateStream.stream.listen((event) {
onAlarmsUpdate(event, alarmSettings);
});
},
);
Please explain more. What is the expected behavior ?
To understand your issue better, could you provide more details on:
- What exactly you mean by “the ring should move in the screen”? Are you referring to an animation or effect?
- What is the ideal behavior you expect when the app is opened from the background mode on iOS?
- Do you have any logs or errors that appear when this issue occurs?
This information would help pinpoint why this discrepancy between iOS and Android exists.
Have you tried experimenting with the example app ?
I have run the example code and tested it, Jesus keeps coming in front of yours. Automatically, after setting the alarm, if you open the app in the background mode, you will be moved to the ring screen.
You're right, this was because of my isRinging(id)
method. I just fixed it in the new release 4.0.12
.
Please update the alarm package and let me know if it works.
You're right, this was because of my
isRinging(id)
method. I just fixed it in the new release4.0.12
.Please update the alarm package and let me know if it works.
Thanks!4.0.12 is works well