可以正常接收推送消息,但是点击通知栏无响应事件

标签: #<Tag:0x00007f657c2ed3b0> #<Tag:0x00007f657c2ed1a8>

可以正常接收推送消息,但是点击通知栏的没有反应,onReceive 方法没有处触发,下载的官方demo也是同样的问题,

其他手机暂时没有出现类似问题,目前只有这款美图v6手机 ,系统 android7.0

使用的 JPush SDK 版本号多少?
集成方式是?
提供你的客户端日志,从初始化开始提供,点击后等待一段时间,再将此时产生的所有的 log 都传上来。

用的是jcenter()集成方式

参考了好多相同的解决方案都没好使,
重新下载的官方deme运行,发现也不好使,用小米的手机就是正常的

点击通知栏,onReceive 没有触发,日志也没有输出,只是单纯的清除状态栏了。

把 implementation 换成 api 或者 compile 试试呢?如果还是不行的话:

1、将更换后测试的 log 复制粘贴文本上来,从初始化开始,完整的 log ,我提交给研发分析一下。

2、提供你当前的配置文件。

3、将你使用 demo 测试得到的客户端 log 也提供一下。

替换成api以后的log,compile替换以后编译就报错。

06-07 16:24:11.434 29119-29119/com.hkhplus.bonni D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.1.3, buildId:405
06-07 16:24:11.445 29119-29119/com.hkhplus.bonni D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.1, buildId:188
06-07 16:24:11.446 29119-29119/com.hkhplus.bonni D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
06-07 16:24:11.450 29119-29119/com.hkhplus.bonni D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
06-07 16:24:11.472 29119-29119/com.hkhplus.bonni D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
06-07 16:24:11.482 29119-29119/com.hkhplus.bonni I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0
06-07 16:24:11.483 29119-29119/com.hkhplus.bonni I/JIGUANG-JPush: [PluginPlatformsInterface] isIntegrateFCM -false
06-07 16:24:14.686 29138-29202/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Already logged in. Give up to restart.
06-07 16:24:26.936 29138-29202/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Send heart beat
06-07 16:24:27.023 29138-29202/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [JiguangTcpManager] Action - onHeartbeatSucceed - connection:2579
06-07 16:24:27.023 29138-29212/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:36, connection:2579, pkg:com.hkhplus.bonni
    [NetworkingClient] Network listening...
06-07 16:24:58.172 29138-29198/com.hkhplus.bonni:pushcore D/JIGUANG-JPush: [JPushDataAction] Action - onActionRun
06-07 16:24:58.173 29138-29198/com.hkhplus.bonni:pushcore D/JIGUANG-JPush: [PushServiceCore] bundle:Bundle[{action=com.hkhplus.bonni.intent.ALIAS_TAGS, proto_type=2, seq_id=21259, tags=null, alias=13426008151, protoaction_type=2, sdktype=JPUSH}]
    [PushServiceCore] Action - handleServiceAction - action:com.hkhplus.bonni.intent.ALIAS_TAGS
06-07 16:24:58.184 29138-29198/com.hkhplus.bonni:pushcore D/JIGUANG-JPush: [TagAliasHelper] tagalias:[TagaliasRequest] - appKey:39472c81de653e54fa683b9f, action:{"platform":"a","op":"set","alias":"13426008151"} - [Request] - [JHead] - len:0, version:1, command:29, rid:21259, sid:0, juid:0
06-07 16:24:58.185 29138-29198/com.hkhplus.bonni:pushcore D/JIGUANG-JPush: [JPushRequestHelper] Action - sendJPushRequest, timeout:20000, threadId:2570
06-07 16:24:58.191 29138-29202/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [RequestCacheManager] Action - sendRequestInternal - connection:2579, timeout:20000,sdkType:JPUSH, threadId:2573
06-07 16:24:58.669 29138-29212/com.hkhplus.bonni:pushcore D/JIGUANG-JPush: [JPushDataAction] response:[TagaliasResponse] - action:{"code":0} - JResponse{code=0}
06-07 16:24:58.671 29138-29212/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:36, connection:2579, pkg:com.hkhplus.bonni
    [NetworkingClient] Network listening...
06-07 16:25:08.739 29138-29212/com.hkhplus.bonni:pushcore D/JIGUANG-JPush: [JPushDataAction] response:[MessagePush] - msgType:0, msgId:1171116332, msgContent:com.hkhplus.bonni
    39472c81de653e54fa683b9f
    {"ad_id":"1171116332","m_content":{"ad_t":0,"n_alert_type":7,"n_category":"","n_content":"5258","n_extras":{},"n_flag":1,"n_priority":0,"n_style":0,"n_title":""},"n_builder_id":0,"n_only":1,"show_type":4} - JResponse{code=0}
06-07 16:25:08.792 29138-29212/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:292, connection:2579, pkg:com.hkhplus.bonni
    [NetworkingClient] Network listening...
06-07 16:25:08.835 29138-29641/com.hkhplus.bonni:pushcore D/JIGUANG-JPush: [NotificationHelper] running flag:false
06-07 16:25:08.875 29138-29641/com.hkhplus.bonni:pushcore D/JIGUANG-JPush: [NotificationHelper] Send push received broadcast to developer defined receiver
06-07 16:25:09.012 29138-29219/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2
06-07 16:25:09.199 29138-29219/com.hkhplus.bonni:pushcore D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2

这是配置文件, 只替换了一下自定义的receiver

这是demo的全部日志

06-07 16:19:40.166 26645-26645/com.hkhplus.bonni D/JIGUANG-Example: [ExampleApplication] onCreate
06-07 16:19:40.183 26645-26645/com.hkhplus.bonni D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.1.3, buildId:405
06-07 16:19:40.199 26645-26645/com.hkhplus.bonni D/JIGUANG-JCore: [ServiceHelper] We found the appKey is changed or register appkey is empty. Will re-register.
06-07 16:19:40.205 26645-26645/com.hkhplus.bonni D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - 39472c81de653e54fa683b9f
    [JCoreGlobal] metadata: channel - developer-default
06-07 16:19:40.210 26645-26645/com.hkhplus.bonni D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.2.1, buildId:188
06-07 16:19:40.212 26645-26645/com.hkhplus.bonni D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
06-07 16:19:40.217 26645-26645/com.hkhplus.bonni D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
06-07 16:19:40.240 26645-26645/com.hkhplus.bonni D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
06-07 16:19:40.260 26645-26645/com.hkhplus.bonni I/JIGUANG-JPush: [PluginPlatformsInterface] whichPlatform - 0
06-07 16:19:40.261 26645-26645/com.hkhplus.bonni I/JIGUANG-JPush: [PluginPlatformsInterface] isIntegrateFCM -false
06-07 16:19:41.713 26645-26645/com.hkhplus.bonni D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.REGISTRATION, extras: 
    key:cn.jpush.android.APPKEY, value:39472c81de653e54fa683b9f
    key:cn.jpush.android.REGISTRATION_ID, value:1507bfd3f795e79a51f
    [MyReceiver] 接收Registration Id : 1507bfd3f795e79a51f
06-07 16:19:42.027 26645-26645/com.hkhplus.bonni D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras: 
    key:cn.jpush.android.APPKEY, value:39472c81de653e54fa683b9f
    key:cn.jpush.android.CONNECTION_CHANGE, value:true
06-07 16:19:42.027 26645-26645/com.hkhplus.bonni W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to true
06-07 16:19:47.817 26645-26645/com.hkhplus.bonni D/JIGUANG-JPush: [JPushInterface] action:stopPush
06-07 16:19:47.846 26645-26645/com.hkhplus.bonni D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras: 
    key:cn.jpush.android.APPKEY, value:39472c81de653e54fa683b9f
    key:cn.jpush.android.CONNECTION_CHANGE, value:false
06-07 16:19:47.846 26645-26645/com.hkhplus.bonni W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to false
06-07 16:19:48.481 26645-26645/com.hkhplus.bonni D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.1.3, buildId:405
06-07 16:19:48.483 26645-26645/com.hkhplus.bonni D/JIGUANG-JPush: [ServiceInterface] The service is stopped, it will give up all the actions until you call resumePush method to resume the service.
06-07 16:19:49.530 26645-26645/com.hkhplus.bonni D/JIGUANG-JPush: [JPushInterface] action:resumePush
06-07 16:19:49.735 26645-26645/com.hkhplus.bonni D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras: 
    key:cn.jpush.android.APPKEY, value:39472c81de653e54fa683b9f
    key:cn.jpush.android.CONNECTION_CHANGE, value:true
06-07 16:19:49.736 26645-26645/com.hkhplus.bonni W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to true
06-07 16:19:51.251 26645-26679/com.hkhplus.bonni D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2
06-07 16:19:57.250 26645-26908/com.hkhplus.bonni I/JIGUANG-TagAliasHelper: action - onAliasOperatorResult, sequence:2,alias:123456789
    action - modify alias Success,sequence:2
    set alias success
06-07 16:20:17.646 26645-26645/com.hkhplus.bonni D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.NOTIFICATION_RECEIVED, extras: 
    key:cn.jpush.android.ALERT, value:5258
    key:cn.jpush.android.NOTIFICATION_ID, value:188154369
    key:cn.jpush.android.ALERT_TYPE, value:7
    key:cn.jpush.android.NOTIFICATION_CONTENT_TITLE, value:JPush SDK Demo
    key:cn.jpush.android.MSG_ID, value:2758240301
    [MyReceiver] 接收到推送下来的通知
    [MyReceiver] 接收到推送下来的通知的ID: 188154369

已反馈,请稍等,需要时间分析。

好的,重新替换了一下更换api以后项目的log,麻烦看一下,之前的好像没有初始化log

经过 debug 日志的提供与分析,是美图手机限了我们的广播,导致了这个问题。

目前暂无解决办法,我们后续会对该问题进行优化。

好吧,还希望能尽快解决。谢谢

有后续结果时我会在社区告知你:blush:感谢你配合 debug

一加也是一样的,能收到推送点击没有反应。查看日志也没有收到点击广播。是不是也是被屏蔽了呢?

使用 demo 测试的结果也是一样吗?

1 个帖子被分离到了新主题:进入后台,点击推送的通知就无法打开具体的页面

请使用最新的 SDK 版本,从 JCore 2.0 开始,问题已处理。