见下图2,推送消息显示的是个推图标,
我在 app-plus,distribute,sdkConfigs,push,unipush,icons,small 设置了小图标,不过还是没生效呢,见图1
- 发布:2022-05-13 08:57
- 更新:2022-12-03 00:45
- 阅读:1532
unipush 接收推送,不时的小图标会显示个推图标
楼主解决了吗?我也遇到这个问题了,小米手机没有问题,华为不行
-
回复 DCloud_Android_THB:
hi,采用这种方式,华为P30还是显示个推的图标。
配置如下:
"push" : {
"unipush" : {
"icons" : {
"push" : {
"ldpi" : "unpackage/res/icons/48x48.png",
"mdpi" : "unpackage/res/icons/48x48.png",
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},"small" : {
"ldpi" : "unpackage/res/icons/18x18.png",
"mdpi" : "unpackage/res/icons/24x24.png",
"hdpi" : "unpackage/res/icons/36x36.png",
"xhdpi" : "unpackage/res/icons/48x48.png",
"xxhdpi" : "unpackage/res/icons/72x72.png"
}
}
}
},2022-08-12 17:14
@DCloud_Android_THB 我就是按照文档设置的,但是华为手机就是不行
"sdkConfigs" : {
"speech" : {},
"payment" : {
"alipay" : {
"__platform__" : [ "ios", "android" ]
}
},
"push" : {
"unipush" : {
"icon" : {
"push" : {
"ldpi" : "unpackage/res/icons/48x48.png",
"mdpi" : "unpackage/res/icons/48x48.png",
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"small" : {
"ldpi" : "unpackage/res/push/18x18.png",
"mdpi" : "unpackage/res/push/24x24.png",
"hdpi" : "unpackage/res/push/36x36.png",
"xhdpi" : "unpackage/res/push/48x48.png",
"xxhdpi" : "unpackage/res/push/72x72.png"
}
}
}
},
谁非一丘土 (作者)
是啊,我以前也是没设置,也是时不时就会显示个推图标
2022-05-13 09:49
g***@163.com
回复 谁非一丘土: 和HBuilder 版本有关,希望官方赶紧修复吧!
2022-05-18 17:22