cordova-plugin-firebase
cordova-plugin-firebase copied to clipboard
Android - FirebasePlugin: Notification Message Title: null
Describe the bug Getting null fields when I send a push notification:
D/FirebasePlugin: Notification Message id: 22
D/FirebasePlugin: Notification Message Title: null
D/FirebasePlugin: Notification Message Body/Text: null
D/FirebasePlugin: Notification Message Sound: null
D/FirebasePlugin: Notification Message Lights: null
To Reproduce Steps to reproduce the behavior:
- Launch the App, open Android studio and watch the logs
- Send a push notifications
- The push will arrive however all the fields will be null
Expected behavior To receive a push notification
Plugin Version I am using: cordova-android 7.1.4
cordova-plugin-firebase 2.0.5
cordova-android-disable-aapt2 1.0.0
cordova-android-firebase-gradle-release 3.0.0
cordova-android-play-services-gradle-release 3.0.0
cordova-android-support-gradle-release 3.0.0
Smartphone (please complete the following information):
- Device: Pixel
- OS: Android 9
I did some debugging and it fails exactly here:
AppDelegate+FirebasePlugin.m - Line 191
-[AppDelegate(FirebasePlugin) userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:]
I'm having the same problem with my Android build. The notifications are empty.
Same here. Android