Flutter Developer
Flutter - FCM: App Crashes when receiving Push Notification
Votes
0
Replies
6
Participants
Unknown
Messages
7
hey 👋,
whats the stacktrace for the crash?
Flutter Developer
Hello, thanks for the quick response.
Please, check my codes below.
main.dart
notification_service.dart
AndroidManifest.xml
Flutter Developer
Resource files for push notification icon
❯ tree android/app/src/main/res/
android/app/src/main/res/
├── drawable
│ ├── background.png
│ ├── ic_stat_notification.png
│ └── launch_background.xml
├── drawable-hdpi
│ ├── android12splash.png
│ ├── ic_stat_notification.png
│ └── splash.png
├── drawable-mdpi
│ ├── android12splash.png
│ ├── ic_stat_notification.png
│ └── splash.png
├── drawable-night-hdpi
│ ├── android12splash.png
│ └── ic_stat_notification.png
├── drawable-night-mdpi
│ ├── android12splash.png
│ └── ic_stat_notification.png
├── drawable-night-xhdpi
│ ├── android12splash.png
│ └── ic_stat_notification.png
├── drawable-night-xxhdpi
│ ├── android12splash.png
│ └── ic_stat_notification.png
├── drawable-night-xxxhdpi
│ ├── android12splash.png
│ └── ic_stat_notification.png
├── drawable-v21
│ ├── background.png
│ └── launch_background.xml
├── drawable-xhdpi
│ ├── android12splash.png
│ ├── ic_stat_notification.png
│ └── splash.png
├── drawable-xxhdpi
│ ├── android12splash.png
│ ├── ic_stat_notification.png
│ └── splash.png
├── drawable-xxxhdpi
│ ├── android12splash.png
│ ├── ic_stat_notification.png
│ └── splash.png
├── mipmap-hdpi
│ ├── ic_launcher.png
│ └── launcher_icon.png
├── mipmap-mdpi
│ ├── ic_launcher.png
│ └── launcher_icon.png
├── mipmap-xhdpi
│ ├── ic_launcher.png
│ └── launcher_icon.png
├── mipmap-xxhdpi
│ ├── ic_launcher.png
│ └── launcher_icon.png
├── mipmap-xxxhdpi
│ ├── ic_launcher.png
│ └── launcher_icon.png
├── raw
│ ├── keep.xml
│ └── notification_sound.wav
├── values
│ └── styles.xml
├── values-night
│ └── styles.xml
├── values-night-v31
│ └── styles.xml
└── values-v31
└── styles.xml
23 directories, 46 files
Flutter Developer
Logs:
Flutter Developer
👆 Am experiencing the same bug
this doesn't really give the logs or any specific info of the ANR due to push notifications. Could be related to FCM and not Appwrite.