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
- Best approach for handling users (creati...
I found out appwrite is wayy different to supabase, so i just wanted to check my approach is correct. Normally when creating user, I'd have something like a t...
- React Native (Expo) Google OAuth not red...
Recently, I tested my app and found that the previous hack for the google auth is now not working anymore. After searching and reading docs, I was able to set i...
- How to increate mx upload filesize ?
Hi, I use self hosted appwrite and want to upload files bigger than 30 mB. how can i increase the max filesize? In my special case i want to import a csv file w...
