gdelataillade / alarm

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

ios without notification receive move to ring screen #286

Closed BhautikVaghasiya closed 1 day ago

BhautikVaghasiya commented 6 days ago

 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);
          });
        },
      );
gdelataillade commented 6 days ago

Hi @BhautikVaghasiya

Please explain more. What is the expected behavior ?

gdelataillade commented 5 days ago

To understand your issue better, could you provide more details on: 1) What exactly you mean by “the ring should move in the screen”? Are you referring to an animation or effect? 2) What is the ideal behavior you expect when the app is opened from the background mode on iOS? 3) 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.

gdelataillade commented 5 days ago

Have you tried experimenting with the example app ?

BhautikVaghasiya commented 3 days ago

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.

gdelataillade commented 3 days ago

Hi @BhautikVaghasiya

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.

toyfind commented 1 day ago

Hi @BhautikVaghasiya

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.

Thanks!4.0.12 is works well

BhautikVaghasiya commented 1 day ago

Done.

On Wed, 20 Nov, 2024, 2:31 pm Toy, @.***> wrote:

Hi @BhautikVaghasiya https://github.com/BhautikVaghasiya

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.

Thanks!4.0.12 is works well

— Reply to this email directly, view it on GitHub https://github.com/gdelataillade/alarm/issues/286#issuecomment-2487947467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATZG23HMA2OIZUQJHIC5NPD2BRFV5AVCNFSM6AAAAABR2KEYPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBXHE2DONBWG4 . You are receiving this because you were mentioned.Message ID: @.***>