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
- Fix Android OAuth2 page not being resume...
I've opened a PR a while back that fixes Flutter OAuth2 authentication with recent `flutter_web_auth_2` version, that didn't get much attention: * https://githu...
- there is critical problem in this part
when user update the integer and double both get error not update or upload
- SMTP email templates break html
Hey, Im trying to create a custom template for the team invite email. The issue is the html invite I created (which works in normal emails and fake emails I sen...