Skip to content
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

Setting an icon for the payload. #117

Open
etelan opened this issue May 15, 2024 · 2 comments
Open

Setting an icon for the payload. #117

etelan opened this issue May 15, 2024 · 2 comments

Comments

@etelan
Copy link

etelan commented May 15, 2024

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?

@sabman
Copy link
Member

sabman commented Aug 29, 2024

@etelan can you provide some more context with resources and code? Thanks

@erimicel
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants