Skip to content

[firebase_messaging] Android — Overrided icon not showing in a release build #3139

@Illuday

Description

@Illuday

Describe the bug
I try to set differents notification icons, the default one is set in my manifest and is working well in dev build & in release build. I added other icons (white with transparent background, in mipmap folders like the default one), in dev build I can change the icon (by passing a notification.icon in my FCM http request) and it's working. The bug is in the release build (I tested it on an alpha release on the playstore), when I try to change the icon, I've a square. However, the default one is working.

To Reproduce
Steps to reproduce the behavior:

  1. Setup firebase_messaging
  2. Add one or more .png in mipmap folders
  3. Push a release build into the playstore
  4. Send a notification with a custom icon

Expected behavior
The custom icon should be appear instead of a square in the release build like the dev one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions