简体   繁体   English

Firebase 推送通知应用程序图标丢失

[英]Firebase push notification app icon is missing

I am using firebase cloud messaging for push notification in the unity android app, I am getting a small icon fine but missing the right side app icon.我在统一 android 应用程序中使用 firebase 云消息推送通知,我得到了一个小图标,但缺少右侧的应用程序图标。 Please check the attached image.请检查所附图像。 enter image description here I am looking for a solution but did not find one.在此处输入图像描述我正在寻找解决方案,但没有找到。 If one has a solution please share.如果有人有解决方案,请分享。 Thanks in advance!提前致谢!

Please share your notification code,请分享您的通知代码,

or try with below code smallIcon() method或尝试使用以下代码smallIcon()方法

NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(baseContext).setLargeIcon(large_icon).setSmallIcon(image); NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(baseContext).setLargeIcon(large_icon).setSmallIcon(image);

Hope it will work..!!希望它会工作..!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter Firebase 推送通知图标 - flutter firebase push notification icon Firebase推送通知未重定向到打开的Facebook页面,并且未显示应用程序通知图标1次通知后 - Firebase Push Notification not redirect to open facebook page and not showing app notification icon After 1 notification 如何从Firebase获取推送通知上的图标? - How to fetch icon on Push Notification from Firebase? 聊天应用程序的Firebase推送通知 - Firebase Push Notification for chat app Android:Firebase 应用程序在前台时推送通知不同的图标,而当应用程序在后台时,另一个图标 - Android: Firebase push notification different icon while app is on foreground and another while app is on background 在codenameone app中添加android推送通知图标 - Adding android push notification icon in codenameone app 在Ionic应用程序中看不到GCM推送通知图标 - GCM Push Notification icon is not visible in Ionic app 如何以编程方式更改应用程序和推送通知图标 - How to change app and push notification icon programmatically 如何在Firebase应用通知中设置更大的图标? - How to set a bigger icon in Firebase app notification? 当应用程序处于后台时,Firebase通知图标不会出现 - Firebase Notification Icon is not coming when App is in background
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM