-
Notifications
You must be signed in to change notification settings - Fork 52
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
[BUG] after running for some hours app restarts and the notification text changes to default. #9
Comments
Thank you very much for the bug report! |
Good and excellent library. The same thing happened to me on a galaxy s9, the service only lasted 15 minutes, it only happened once for now, I don't know what the problem will be, maybe android kills the service, any other reason for this bug? |
Interesting... Do you have any console logs available from when it resets/cancels the foreground service? |
Excellent library, thank you for creating this, Julian! For what it's worth, I am also experiencing this on a Samsung device. Might be unrelated, but Crashlytics also reported crashes at the same time. Let me know if you'd like me to create a separate issue for this instead (crash is coming from Samsung and Pixel devices, which covers 100% of the install base of our app)
|
Thank you very much for the information, I will look into it when I have some time to spare :) |
I have the same problem. |
Thank you for your kind words and the comment. |
I believe what's happening here is that the app crashes and the OS automatically restarts the service. In this case I was able to reproduce this behavior with the example app:
The notification disappears and then reappears in a few seconds with the default text. I fixed this by storing the notification's configuration in shared preferences and then reloading them before use. @JulianAssmann would you mind taking a look? |
Does hits merged? |
This plugin works quite well except for the first time crash while granting permission.
what I noticed that if I run the app for few hours like 8-9hours it restarts autoomatically (as I can see the "time since" thing in notification changes). and the notification title and description text switch backs to default (keeps the flutter app running in the background). attaching screenshot.
The text was updated successfully, but these errors were encountered: