极光推送sdk升级到3.3.4,设置别名总是设置不上提示6002,6012

标签: #<Tag:0x00007f657f927d40> #<Tag:0x00007f657f927b88>

极光推送sdk升级到3.3.4,设置别名总是设置不上提示
Failed to set alias, errorCode:6012
Failed to delete alias, errorCode:6002

提供完整的客户端日志看看是否有集成成功

08-08 08:47:30.361 28494-28494/com.yunfu.myzf.business D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.3.4, buildId:36
08-08 08:47:30.392 28494-28494/com.yunfu.myzf.business D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
08-08 08:47:30.399 28494-28494/com.yunfu.myzf.business I/JIGUANG-JPush: [JPushGobal] found messageReceiverClass :com.yunfu.myzf.business.receiver.JPushMessageReceiver by getCommonReceiverNames
08-08 08:47:30.404 28494-28494/com.yunfu.myzf.business D/JIGUANG-JPush: [JPushGobal] is not same process with JCommonService
08-08 08:47:30.415 28494-28674/com.yunfu.myzf.business I/JIGUANG-JCore: [JCoreGobal] action:init jcore,version:2.1.2,build id:40
08-08 08:47:30.418 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:init
08-08 08:47:30.423 28494-28674/com.yunfu.myzf.business I/JIGUANG-JCore: [JCommonServiceHelper] found userServiceClass :com.yunfu.myzf.business.receiver.PushService by getCommonServiceNames
08-08 08:47:30.426 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:silenceTime
08-08 08:47:30.598 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground
    [JCoreHelper] runActionWithService action:notification_state
08-08 08:47:31.173 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:silenceTime
08-08 08:47:31.180 28494-28494/com.yunfu.myzf.business D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras: 
    key:cn.jpush.android.CONNECTION_CHANGE, value:true
08-08 08:47:31.180 28494-28494/com.yunfu.myzf.business W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to true
08-08 08:47:32.561 28494-28494/com.yunfu.myzf.business D/JIGUANG-JPush: [JPushInterface] action:stopPush
08-08 08:47:32.561 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:stop
08-08 08:47:32.565 28494-28494/com.yunfu.myzf.business D/JIGUANG-JPush: [JPushInterface] action:resumePush
08-08 08:47:32.566 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:resume
08-08 08:47:32.568 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:tagalis
08-08 08:47:32.591 28677-28707/com.yunfu.myzf.business:pushcore W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'cn.jiguang.an.a cn.jiguang.af.i.c()' on a null object reference
        at cn.jiguang.ah.o.a(Unknown Source)
        at cn.jiguang.ah.k.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)
08-08 08:47:32.613 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:silenceTime
08-08 08:47:32.616 28494-28494/com.yunfu.myzf.business D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras: 
    key:cn.jpush.android.CONNECTION_CHANGE, value:false
08-08 08:47:32.616 28494-28494/com.yunfu.myzf.business W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to false
08-08 08:47:34.144 28494-28494/com.yunfu.myzf.business D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:silenceTime
08-08 08:47:34.157 28494-28494/com.yunfu.myzf.business D/JIGUANG-Example: [MyReceiver] onReceive - cn.jpush.android.intent.CONNECTION, extras: 
    key:cn.jpush.android.CONNECTION_CHANGE, value:true
08-08 08:47:34.158 28494-28494/com.yunfu.myzf.business W/JIGUANG-Example: [MyReceiver]cn.jpush.android.intent.CONNECTION connected state change to true

然后我设置别名时,debug到的 code
Failed to set alias, errorCode:6022

可以试下发条推送看能收到吗

我之后又重新登录设置别名 又不报这个错误了;
可是,我们app的其他用户反馈接收不到推送;
请问 我以上运行的问题怎样解决,还有就是接收不到推送的问题

1赞

如果app长时间处于后台运行或者关闭app有可能是收不到,确认下打开是否可以收到?

1、我确认实在前台的 我自己测试怎么回长时间在后台;
2、我是最近升级到新的sdk 3.3.4 才出现这个问题的,之前设置别名可以,现在设置别名总是失败,就是升级的原因;
3、我做的项目需要自定义通知铃声 ,所以才升级到这里,所以不能再降回最老的版本;
4、现在是我升级到3.3.4 设置别名失败,希望针对这一问题,能有解决办法

check下logcat启动后是否有错误提示,新版本有新增的集成项,麻烦对照下集成文档

你给的日志里面没有设置别名的信息,也没看到集成是否成功。

当登录一个账户设置别名成功后,退出删除别名;再登录另一个账户 会出现设置别名失败,6002 或6022

08-14 15:37:01.409 955-1416/com.yunfu.myzf.business E/PRETTY_LOGGER-TagAliasOperatorHelper: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ TagAliasOperatorHelper.onAliasOperatorResult (TagAliasOperatorHelper.java:334)
│ LogUtils.e (LogUtils.java:48)
08-14 15:37:01.410 955-1416/com.yunfu.myzf.business E/PRETTY_LOGGER-TagAliasOperatorHelper: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ Failed to delete alias, errorCode:6022
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────
08-14 15:37:12.301 955-1416/com.yunfu.myzf.business E/PRETTY_LOGGER-TagAliasOperatorHelper: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ Thread: MessageReceiver
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
08-14 15:37:12.302 955-1416/com.yunfu.myzf.business E/PRETTY_LOGGER-TagAliasOperatorHelper: │ TagAliasOperatorHelper.onAliasOperatorResult (TagAliasOperatorHelper.java:334)
│ LogUtils.e (LogUtils.java:48)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ Failed to set alias, errorCode:6022
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────
08-14 15:38:01.466 955-1416/com.yunfu.myzf.business E/PRETTY_LOGGER-TagAliasOperatorHelper: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ Thread: MessageReceiver

请在上一次请求别名设置结束后再做下一次请求,监听回调结果

我也遇到了相同的问题,设置别名的时候,看log有时会成功,有时会显示 E/JIGUANG-JPush: [JIGUANG-TagAliasHelper] Failed to set alias, errorCode:6002
退出再进来有时又好了,但是出现6002的概率还是挺大的,一旦6002就不能推送了,找不到设备

请问有解决的方案了吗,log如下:
2019-08-17 15:39:10.845 23396-23396/cms.ml399shop.mmm D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.3.4, buildId:36
2019-08-17 15:39:10.858 23396-23396/cms.ml399shop.mmm D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
2019-08-17 15:39:10.861 23396-23396/cms.ml399shop.mmm I/JIGUANG-JPush: [JPushGobal] found messageReceiverClass :cms.ml399shop.mmm.jpush.MyJPushMessageReceiver by getCommonReceiverNames
2019-08-17 15:39:10.863 23396-23396/cms.ml399shop.mmm D/JIGUANG-JPush: [JPushGobal] is not same process with JCommonService
2019-08-17 15:39:10.876 23396-23421/cms.ml399shop.mmm I/JIGUANG-JCore: [JCommonServiceHelper] found userServiceClass :cms.ml399shop.mmm.jpush.PushService by getCommonServiceNames
2019-08-17 15:39:10.888 1247-8277/? I/ActivityManager: Need to start process cms.ml399shop.mmm:pushcore for provider ContentProviderInfo{name=cms.ml399shop.mmm.DataProvider className=cn.jpush.android.service.DataProvider}, callerApp: ProcessRecord{45c2416 23396:cms.ml399shop.mmm/u0a331}
2019-08-17 15:39:10.889 1247-8277/? V/ActivityManager_MU: Waiting to start provider ContentProviderRecord{f50434c u0 cms.ml399shop.mmm/cn.jpush.android.service.DataProvider} launchingApp=ProcessRecord{584ed9 0:cms.ml399shop.mmm:pushcore/u0a331} caller pid= 23396
2019-08-17 15:39:10.900 1247-1409/? I/ActivityManager: Start proc 23426:cms.ml399shop.mmm:pushcore/u0a331 for service cms.ml399shop.mmm/.jpush.PushService
2019-08-17 15:39:11.118 1247-8277/? V/ActivityManager: Successfully start provider ContentProviderRecord{f50434c u0 cms.ml399shop.mmm/cn.jpush.android.service.DataProvider} launchingApp=ProcessRecord{584ed9 23426:cms.ml399shop.mmm:pushcore/u0a331} caller pid= 23396
2019-08-17 15:39:11.129 23426-23426/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.3.4, buildId:36
2019-08-17 15:39:11.142 23426-23426/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
2019-08-17 15:39:11.146 23426-23426/cms.ml399shop.mmm:pushcore I/JIGUANG-JPush: [JPushGobal] found messageReceiverClass :cms.ml399shop.mmm.jpush.MyJPushMessageReceiver by getCommonReceiverNames
2019-08-17 15:39:11.149 23426-23426/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [JPushGobal] is not same process with JCommonService
2019-08-17 15:39:11.171 23426-23489/cms.ml399shop.mmm:pushcore I/JIGUANG-JCore: [JCommonServiceHelper] found userServiceClass :cms.ml399shop.mmm.jpush.PushService by getCommonServiceNames
2019-08-17 15:39:11.183 23426-23496/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [ActionHelper] doAction:init
2019-08-17 15:39:11.185 23426-23496/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [ActionHelper] doAction:init
2019-08-17 15:39:11.187 23426-23513/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
2019-08-17 15:39:11.187 23426-23496/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [ActionHelper] doAction:tagalis
2019-08-17 15:39:11.197 23426-23496/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [ActionHelper] doAction:change_foreground
2019-08-17 15:39:11.197 23426-23513/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [GeofenceAction] Recover geofence size:0
2019-08-17 15:39:11.200 23426-23513/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [CustomGeofenAction] start listen geofence
2019-08-17 15:39:11.201 23426-23513/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [CustomGeofenAction] No geofence,not need listen
2019-08-17 15:39:11.209 23426-23513/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [TagAliasHelper] tagalias:{“platform”:“a”,“op”:“set”,“alias”:“15051285330”}
2019-08-17 15:39:11.212 23426-23513/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [CustomGeofenAction] start listen geofence
2019-08-17 15:39:11.213 23426-23513/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [CustomGeofenAction] No geofence,not need listen
2019-08-17 15:39:11.498 23426-23519/cms.ml399shop.mmm:pushcore I/JIGUANG-JPush: [ThirdPushManager] uploadRegIdAfterLogin
2019-08-17 15:39:11.506 1247-1336/? V/BroadcastQueue: Finished with ordered broadcast BroadcastRecord{8cc5b5e u0 cn.jpush.android.intent.CONNECTION}
2019-08-17 15:39:31.247 23426-23519/cms.ml399shop.mmm:pushcore D/JIGUANG-JPush: [ActionHelper] doAction:msg_time_out
2019-08-17 15:39:31.263 1247-2653/? V/BroadcastQueue: Finished with ordered broadcast BroadcastRecord{4b0ec9c u0 cn.jpush.android.intent.RECEIVE_MESSAGE}
2019-08-17 15:39:31.265 23396-23566/cms.ml399shop.mmm E/JIGUANG-JPush: [JIGUANG-TagAliasHelper] Failed to set alias, errorCode:6002

阅读本帖,注意监听、重试