【发布时间】:2021-01-25 23:30:19
【问题描述】:
我制作了一个应用程序并实现了推送通知,它可以工作,但我尝试使用image.png 更改默认图标,但它没有按我预期的方式工作。这是我的通知的外观:
我希望我的图标看起来像这样:
我在我的 android manifest 中添加了这个:
<!-- Add custom icon to the notifications -->
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_notifications" />
<!-- Change the color of the icon -->
<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/colorPrimary" />
我不知道我做错了什么,但你能帮帮我吗?
【问题讨论】:
标签: android flutter push-notification icons flutter-notification