jpush / jpush-phonegap-plugin

JPush's officially supported PhoneGap/Cordova plugin (Android & iOS). 极光推送官方支持的 PhoneGap/Cordova 插件(Android & iOS)。
https://docs.jiguang.cn
MIT License
925 stars 350 forks source link

Android 6.0 推送图标无法显示,只是显示白色 #405

Open JianhuisHuang opened 5 years ago

JianhuisHuang commented 5 years ago

WARNING: 如果不按照这个表格,我们将无法帮助你,并将忽略你的问题。

你的运行环境

期望效果

Android 6.0 或者Android 5.0 正常显示应用图标

实际效果

Screenshot_20190529-110206 Android 6.0 推送图标无法显示,只是显示白色

重现步骤

步骤安装官方文档 例如:

let openNotification = this.jPushPlugin.openNotification().subscribe( res => {
               // console.log('收到点击通知事件',JSON.stringify(res));
            })

let receiveNotification = this.jPushPlugin.receiveNotification().subscribe( res => {
               // console.log('收到通知',JSON.stringify(res));
             })

let receiveMessage = this.jPushPlugin.receiveMessage().subscribe( res => {
               // console.log('收到自定义消息',JSON.stringify(res));
            })

let backgroundNotification = this.jPushPlugin.backgroundNotification().subscribe( res => {
               // console.log('收到后台通知',JSON.stringify(res));
             });
this.jPushPlugin.init().then(res => {
              // console.log("this.jPushPlugin.init res",JSON.stringify(res));
              this.getRegistrationID();
            }).catch(error =>{
              // console.log("this.jPushPlugin.init error",JSON.stringify(error));
            })

背景

你尝试做过些什么? 例如:

Debug logs

包括 Android 或 iOS 的日志:

Sorry with nothing

ghost commented 5 years ago

same here