华为 Mate10,EMUI 版本 8.0.0.127,Android 版本 8.0.0,接入 HMS SDK 2.5.3.302。
现象:
荣耀 8,EMUI 5,可以正常接受推送,说明我的应用服务端没问题;
Mate10,EMUI 8,收不到推送,看Logcat,有如下日志:
- No Channel found for pkg=com.pushsoft.aio5app, channelId=null, id=-1951843724, tag=null, opPkg=com.huawei.android.pushagent, callingUid=10069, userId=0, incomingUserId=0, notificationUid=10310, notification=Notification(channel=null pri=0 contentView=null vibrate=null sound=default tick defaults=0x1 flags=0x10 color=0x00000000 vis=PRIVATE)
解决:
从开发者群里,得知 新版本的 HMS SDK:
EMUI 4.0 等低版本,收不到推送是因为广播限制,通常打开自启动权限能够收到
EMUI 4.1 之后的版本,推送效果是最好的,不需要应用在后台也能收到
EMUI 8.0 系统底层的bug,需要 apk 编译的 compileSDKVersion 为 24 或 25,才能在 EMUI 8 上收到推送。据说,2月的EMUI版本会修复此问题





































苏公安网备 32011402010933号