-
Hello, I am writing an app that notifies volunteer firefighers when an operation is ongoing. It allows them to press a button, if they will be available or not. I have had no issues until now, but this is quite severe. When I send a Data Message with High priority, when the app is just minimized. there is no problem and the notification shows without problem. When swiping it away in the app drawer however, the notification shown with flutter_local_notifications is just not showing. I have tried disabling battery optimisation (on samsung a12), but no success. I hope you can help me in any way. Relevant part of the main.dart file:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I forgot to mention, that i also tried extracting the setup and notification part of flutter_local_notifications as I thought this was the problem. (you can probably see that) |
Beta Was this translation helpful? Give feedback.
-
I am a dumbass, I forgot to disable battery optimisation and add the POST_NOTIFICATIONS permission to my manifest. I am sorry if i wasted anyones time. |
Beta Was this translation helpful? Give feedback.
I am a dumbass, I forgot to disable battery optimisation and add the POST_NOTIFICATIONS permission to my manifest. I am sorry if i wasted anyones time.