我可以将android中的默认推送通知图标从应用程序图标覆盖到自定义图标吗? [英] Can I override default push notification icon in android from app icon to custom icon?

查看:429
本文介绍了我可以将android中的默认推送通知图标从应用程序图标覆盖到自定义图标吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以将android中的默认推送通知图标从应用程序图标覆盖到自定义图标吗?

Can I override default push notification icon in android from app icon to custom icon?

当推送通知到来时,我正在使用默认的Firebase实现在系统任务栏中显示通知.由于我的应用程序图标是彩色的并且具有渐变,因此当收到通知时,android会尝试制作它的黑白版本,并使它看起来像一个白色圆圈.

I am using default firebase implementation to display notification in system tray, when a push notification come. Since my app icon is coloured and has gradient, so when a notification comes, android tried to make a black/white version of it, and make it look like a white circle.

是否可以将默认通知图标更新为其他内容而不是默认应用程序图标?

Is there a way to update the default notification icon to something else instead of default app icon?

PS:期待着一个解决方案,该解决方案需要更改清单中的配置,并且不想使用NotificationCompat.Builder

PS: Looking forward for a solution which required a config change in manifest and don't want to use NotificationCompat.Builder

推荐答案

,您可以根据

希望它可以帮助人们.

这篇关于我可以将android中的默认推送通知图标从应用程序图标覆盖到自定义图标吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆