Firebase Messaging Causes ANR on Notification Receive in Flutter App (Even with Minimal Handler)
- 0
- Android
- Flutter
- Messaging

I am working on a Flutter project where I have set up notifications using Firebase Messaging. Everything was working perfectly until recently. After coming back to the project after a long time and running the code again, the app crashes with an ANR (Application Not Responding) when a notification is received.
The notification is received, and the foreground handler gets the data, but then the app crashes immediately.
After debugging, I realized that once the notification is received, something takes a long time to process, which is likely causing the crash.
To investigate further, I removed all heavy tasks and left only a simple print log inside the handler—but the crash still occurs.
Recommended threads
- Flutter - FCM: App Crashes when receivin...
- Flutter 3.32 Upgrade Warning – Appwrite ...
Hey everyone, just a heads-up after upgrading to Flutter 3.32! This likely won’t impact your development, but I wanted to give you a quick warning. ``` [log] W...
- Receive messages in an Android app
> https://appwrite.io/docs/products/messaging/send-push-notifications in this doc there is not provide the how to receive cloud messages from fmc so i have edi...
