cordova-plugin-firebase icon indicating copy to clipboard operation
cordova-plugin-firebase copied to clipboard

Android - FirebasePlugin: Notification Message Title: null

Open wilsolutions opened this issue 6 years ago • 3 comments

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:

  1. Launch the App, open Android studio and watch the logs
  2. Send a push notifications
  3. 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

wilsolutions avatar May 01 '19 15:05 wilsolutions

I did some debugging and it fails exactly here:

AppDelegate+FirebasePlugin.m - Line 191
-[AppDelegate(FirebasePlugin) userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:]

wilsolutions avatar May 02 '19 01:05 wilsolutions

I'm having the same problem with my Android build. The notifications are empty.

joshbell avatar May 09 '19 20:05 joshbell

Same here. Android

vaiden avatar Sep 04 '19 13:09 vaiden