alp*_*hin 5 push-notification firebase firebase-realtime-database flutter firebase-cloud-messaging
虽然我在stackoverflow中做了这个解决方案,但图标仍然是一样的。
<meta-data android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@mipmap/ic_launcher" />
Run Code Online (Sandbox Code Playgroud)
这里是顶部图标:
哪里有问题?我还使用此网站创建透明图标:https://jgilfelt.github.io/AndroidAssetStudio/icons-notification.html#source.space.trim=1&source.space.pad=0&name=ic_stat_ic_launcher
我的 res 文件现在也是这样(来自上面链接的可绘制文件夹):
Vol*_*mar 10
就我而言,问题是我将
\n<meta-data android:name="com.google.firebase.messaging.default_notification_icon" \xe2\x80\xa6 />
<activity/>AndroidManifest.xml 中主标签下的标签
显然,它应该位于<application/>标签下(层次结构中较高的位置)。
| 归档时间: |
|
| 查看次数: |
6711 次 |
| 最近记录: |