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
- Unable to create push providers - FCM or...
Currently unable to create a push provider for FCM or APNS.... https://github.com/appwrite/console/issues/2045 When uploading a file... FCM = Valid file retu...
- Flutter OAuth2 Google does not return to...
When the flow starts, the browser opens, I select an account, and it keeps showing: """ Page not found The page you're looking for doesn't exist. `general_rout...
- Error
I'm trying to get sellerId using account.get() in my appwrite function and this is the error message I'm getting: "Failed to send notification to seller 6865bf...
