-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase Cloud Messaging not getting the Android Icon in notification #1178
Comments
You are passing icon and other settings as part https://firebase.google.com/docs/reference/admin/node/admin.messaging.AndroidConfig#notification |
@hiranya911 I am checking the structure of the code and I don't see any This the notification object in your own library.
|
@hiranya911 I was testing your suggestion on the method send. The response is the following:
I am sending this payload:
|
You're looking at the wrong type. Correct type is called firebase-admin-node/src/messaging/index.ts Lines 455 to 633 in 93362d5
|
Your payload is still incorrect. Please take another look at the API reference docs I've linked above. You can also find an example involving the |
Ohh I see. You are totally right. I was sending the information wrong. Thank you so much. |
Describe your environment
Currently I am testing push notification on Android using the method
.send
in messages.I already tested my client side with FCM console and the notification icon works perfect, also I used the method
.sendToDevice
and is working fine.In order to reproduce send I used this:
The result is the following:
This actually what I got from FCM console:
I also tried to remove the icon section as well. I got the same result.
The text was updated successfully, but these errors were encountered: