Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarm screen not getting displayed #241

Open
sidali-dev opened this issue Sep 16, 2024 · 6 comments
Open

Alarm screen not getting displayed #241

sidali-dev opened this issue Sep 16, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@sidali-dev
Copy link

sidali-dev commented Sep 16, 2024

Alarm plugin version
4.0.0-dev.3 (although this bug was happening ever since i tried 3.1.4

Describe the bug
Basically sometimes when the alarm gets triggered and i click on its notification or it automatically opens the app, i get directed to the normal app, not to the ring screen, which can be quite problematic as it can lead to the alarm not stopping if its looping

Expected behavior
The obviously expected behaviour is that the app opens the ring screen whenever the alarm gets triggered.

Screenshots
I have a screen recording for the bug, the file is a bit to large to be posted here, if interested, i can send it to you directly or post it somewhere.

code snippet
code snippet 1

Device info
Mainly pixel 7 using android 15 Beta, yet i have tried on other devices like pixel 3, honor 7x, oneplus nord n20. All of which are using a different android version

Additional context
The app am working on is readdy to be launched publicly on play store, as i have already passed the 20 testers phase, and the final reviews by google team. This bug is the only thing standing between me and releasing my first truly functional app on the play store, so if you can provide some help with it, ill be forever in your debt.

@sidali-dev sidali-dev added the bug Something isn't working label Sep 16, 2024
@gdelataillade
Copy link
Owner

Hi @sidali-dev,

Thank you for your interest in the plugin!

It’s a bit challenging to pinpoint the exact cause of the issue with the current information, but we can start by going through a few basic checks:

  1. Please ensure you’ve carefully read the README and followed the installation steps.
  2. Are there any unusual logs or errors in your debug console?
  3. Have you tried running the example app provided?

If everything seems correct and the issue persists, we can look into it more deeply. Feel free to share a video of the issue if that helps; you can send it to my email at [email protected].

Best regards.

@sidali-dev
Copy link
Author

@gdelataillade , thanks for the fast reply, it's very much appreciated, and yes i have read the README file and even tried to build quick little apps using the library which worked well (yet weren't tested as much). I have sent you the video in question to your email :).
Regarding the bug, the thing about it is that it's not persistent, what am trying to say is that i couldn't find whats triggering it, as i have tried multiple scenarios in order to reproduce it, yet it doesn't. Iv'e only managed to catch it once while recording it (the record that i sent you). Ill keep you updated in case i was able to pinpoint the reason.

@gdelataillade
Copy link
Owner

Hi @sidali-dev

Thanks for sending me the video.

Hope you will find the reason of the issue soon. In the meantime, if you need a temporary fix, you can add to your project the package flutter_fgbg. With this package you can detect when the app is opened and at this moment you can check if your alarm is currently ringing with Alarm.isRinging(id). If it's the case then you can do the redirection to the ring screen.

I'll let you know if I come with a better solution.

@gdelataillade
Copy link
Owner

Hi @sidali-dev

Do you still have the issue ?

@sidali-dev
Copy link
Author

Unfortunately yes, the issue still happens every here and there, I tried to replicate the issue to figure what's triggering it but I couldn't.

@gdelataillade
Copy link
Owner

I’m sorry to hear the issue is still ongoing. While I can’t focus on it fully at the moment, I’m hopeful I’ll have a solution soon and will keep you updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants