Setting an icon for the payload.
Dear all. I have been trying to set an icon for the payload. All the resources say to put the icon in your androids res/drawable, but this is a ruby gem. Any ideas on how to get this to work?
@etelan can you provide some more context with resources and code? Thanks
@etelan you can follow up this firebase api doc: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages
You might need to use something like this:
{
token: "token",
android: {
notification: {
icon: String
}
}
}
icon: string
The notification's icon. Sets the notification icon to myicon for drawable resource myicon. If you don't send this key in the request, FCM displays the launcher icon specified in your app manifest.