用户第一次登陆app打开的时候会有个accid,但是没有登陆,极光就开始跑了,会让程序闪退

android
标签: #<Tag:0x00007fb8460a2278>

(蓝风) #3

这个accid是我自己的。

Process: com.e21cn.im, PID: 24464
                                                              java.lang.RuntimeException: Unable to start receiver com.e21cn.im.resever.Push_Receiver: java.lang.IllegalStateException: Already Executed
                                                                  at android.app.ActivityThread.handleReceiver(ActivityThread.java:2729)
                                                                  at android.app.ActivityThread.access$1800(ActivityThread.java:167)
                                                                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1451)
                                                                  at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                  at android.os.Looper.loop(Looper.java:135)
                                                                  at android.app.ActivityThread.main(ActivityThread.java:5401)
                                                                  at java.lang.reflect.Method.invoke(Native Method)
                                                                  at java.lang.reflect.Method.invoke(Method.java:372)
                                                                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:919)
                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:714)
                                                               Caused by: java.lang.IllegalStateException: Already Executed
                                                                  at okhttp3.RealCall.execute(RealCall.java:52)
                                                                  at com.e21cn.im.resever.Push_Receiver.SendToServer(Push_Receiver.java:209)
                                                                  at com.e21cn.im.resever.Push_Receiver.onReceive(Push_Receiver.java:54)
                                                                  at android.app.ActivityThread.handleReceiver(ActivityThread.java:2722)
                                                                  at android.app.ActivityThread.access$1800(ActivityThread.java:167) 
                                                                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1451) 
                                                                  at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                  at android.os.Looper.loop(Looper.java:135) 
                                                                  at android.app.ActivityThread.main(ActivityThread.java:5401) 
                                                                  at java.lang.reflect.Method.invoke(Native Method) 
                                                                  at java.lang.reflect.Method.invoke(Method.java:372) 
                                                                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:919) 
                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:714)

(蓝风) #4

第一次还没有登陆 也就是正常安装打开app后 还没有登陆 accid是获取不了的。 这个时候就会闪退 我可以不可以直接在这里判断是否为空,然后极光会自己去检测么


#5

极光不需要这个id的呀,你是以什么方式注册的极光呀,不要将极光的逻辑和你们自己的业务做强关联吧,就譬如你的什么值没获取,然后导致极光的正常注册所需的key无法得到。

极光的在AndroidManifest里面配置好appkey、包名基本就OK了


(蓝风) #6
d_result: <!DOCTYPE html>
<html>
<head>
<title>The parameters dictionary contains a null entry for parameter 'accid' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult registerPush(Int32, System.String, System.String, System.String, Int32)' in 'KaoWuTong.IMApi.Controllers.APIController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.<br>Parameter name: parameters</title>
<meta name="viewport" content="width=device-width" />
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
@media screen and (max-width: 639px) {
 pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
 }
@media screen and (max-width: 479px) {
 pre { width: 280px; }
 }
</style>
</head>
                                                               
<body bgcolor="white">
                                                               
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
                                                               
<h2> <i>The parameters dictionary contains a null entry for parameter 'accid' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult registerPush(Int32, System.String, System.String, System.String, Int32)' in 'KaoWuTong.IMApi.Controllers.APIController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.<br>Parameter name: parameters</i> </h2></span>
                                                               
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
                                                               
<b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
                                                               
<br><br>
                                                               
<b> Exception Details: </b>System.ArgumentException: The parameters dictionary contains a null entry for parameter 'accid' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult registerPush(Int32, System.String, System.String, System.String, Int32)' in 'KaoWuTong.IMApi.Controllers.APIController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.<br>Parameter name: parameters<br><br>
                                                               
<b>Source Error:</b> <br><br>
                                                               
          <table width=100% bgcolor="#ffffcc">
                <tr>
                  <td>
                     <code>
                                                               
       An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>
                                                               
                            </td>
                            </tr>
                            </table>
                                                               
                            <br>
                                                               
                           <b>Stack Trace:</b> <br><br>
                                                               
                          <table width=100% bgcolor="#ffffcc">
                          <tr>
                          <td>
                         <code><pre>

(蓝风) #7

换了一个手机后 收不到推送


#8

提供极光相关的日志吧


(蓝风) #9
04-27 16:36:38.169 17567-17654/com.e21cn.im W/JIGUANG-JCore: [ConnectingHelper] Can not get sis info from host: sis.jpush.io
                                                             java.net.SocketTimeoutException
                                                                 at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:598)
                                                                 at libcore.io.IoBridge.recvfrom(IoBridge.java:556)
                                                                 at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163)
                                                                 at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171)
                                                                 at java.net.DatagramSocket.receive(DatagramSocket.java:274)
                                                                 at cn.jiguang.b.d.c.a(Unknown Source)
                                                                 at cn.jiguang.b.b.g.run(Unknown Source)
                                                                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                 at java.lang.Thread.run(Thread.java:818)
                                                              Caused by: android.system.ErrnoException: recvfrom failed: EAGAIN (Try again)
                                                                 at libcore.io.Posix.recvfromBytes(Native Method)
                                                                 at libcore.io.Posix.recvfrom(Posix.java:185)
                                                                 at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:250)
                                                                 at libcore.io.IoBridge.recvfrom(IoBridge.java:553)
                                                                 at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:163) 
                                                                 at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:171) 
                                                                 at java.net.DatagramSocket.receive(DatagramSocket.java:274) 
                                                                 at cn.jiguang.b.d.c.a(Unknown Source) 
                                                                 at cn.jiguang.b.b.g.run(Unknown Source) 
                                                                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                 at java.lang.Thread.run(Thread.java:818)

(蓝风) #10

登陆过后调用init 不可以么


#11

是可以的

你给的这个日志 是网络问题,你换个网络测试一下


(蓝风) #12

退出登陆后 还是能收到推送 要调用什么结束推送 然后下次登陆的时候直接调用init么


#13

init只有一次调用

请阅读:


(蓝风) #15

是这样删除别名的么 这是一个退出的操作,app都退出了 然后我设置了空的字符串进去,为什么还是能收到推送呢


#16

请提供你设置别名的客户端日志


(蓝风) #18
04-27 17:19:42.769 26720-26720/com.e21cn.im D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.0.5, buildId:359
04-27 17:19:42.799 26720-26720/com.e21cn.im D/ViewRootImpl: Buffer Count from app info with  ::-1 && -1 for :: com.e21cn.im from View :: -1 DBQ Enabled ::false false
04-27 17:19:42.799 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.resever.GetMsgService.reStart:116--->NNN ---true
04-27 17:19:42.819 26720-26720/com.e21cn.im D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=cn.jpush.android.intent.INIT cmp=com.e21cn.im/cn.jpush.android.service.PushService (has extras) }, pkg:com.e21cn.im, connection:-1203505680
04-27 17:19:42.819 26720-26720/com.e21cn.im D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=run.action cmp=com.e21cn.im/cn.jpush.android.service.PushService (has extras) }, pkg:com.e21cn.im, connection:-1203505680
04-27 17:19:42.819 26720-26751/com.e21cn.im D/JIGUANG-JPush: [JPushDataAction] Action - onActionRun
04-27 17:19:42.829 26720-26751/com.e21cn.im D/JIGUANG-JPush: [PushServiceCore] bundle:Bundle[{action=cn.jpush.android.intent.ALIAS_TAGS, seq_id=28203, tags=null, alias=16202, sdktype=JPUSH}]
04-27 17:19:42.829 26720-26751/com.e21cn.im D/JIGUANG-JPush: [PushServiceCore] Action - handleServiceAction - action:cn.jpush.android.intent.ALIAS_TAGS
04-27 17:19:42.839 26720-26751/com.e21cn.im D/JIGUANG-JPush: [TagAliasHelper] action:setAliasAndTags - alias:16202, tags:null
04-27 17:19:42.839 26720-26751/com.e21cn.im D/JIGUANG-JPush: [JPushRequestHelper] Action - sendJPushRequest, timeout:20000, threadId:13083
04-27 17:19:42.859 26720-27151/com.e21cn.im E/Client: run
04-27 17:19:42.869 26720-26720/com.e21cn.im W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
04-27 17:19:42.869 26720-26720/com.e21cn.im D/PhoneWindow: *FMB* installDecor mIsFloating : false
04-27 17:19:42.869 26720-26720/com.e21cn.im D/PhoneWindow: *FMB* installDecor flags : 8454400
04-27 17:19:42.879 26720-27156/com.e21cn.im D/AndroidDemos: com.e21cn.im.util.http.io.ClientoutputThread.run:73--->---CCC---true
04-27 17:19:42.889 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.HomeActivity.getView:132--->0:tiao--ee
04-27 17:19:42.889 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.HomeActivity.getView:133--->0:ee
04-27 17:19:42.899 26720-26720/com.e21cn.im I/InjectionManager: dispatchTabHostEventcom.e21cn.im.gui.activity.HomeActivity
04-27 17:19:42.899 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.HomeActivity.getView:132--->0:tiao--ee
04-27 17:19:42.899 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.HomeActivity.getView:133--->1:ee
04-27 17:19:42.909 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.HomeActivity.getView:132--->0:tiao--ee
04-27 17:19:42.909 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.HomeActivity.getView:133--->2:ee
04-27 17:19:42.909 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.HomeActivity.getView:132--->0:tiao--ee
04-27 17:19:42.919 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.HomeActivity.getView:133--->3:ee
04-27 17:19:42.919 26720-26720/com.e21cn.im D/Activity: performCreate Call Injection manager
04-27 17:19:42.919 26720-26720/com.e21cn.im I/InjectionManager: dispatchOnViewCreated > Target : com.e21cn.im.gui.activity.HomeActivity isFragment :false
04-27 17:19:42.919 26720-26720/com.e21cn.im D/ViewRootImpl: Buffer Count from app info with  ::-1 && -1 for :: com.e21cn.im from View :: -1 DBQ Enabled ::false false
04-27 17:19:42.919 26720-26720/com.e21cn.im D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=sendrequestdata.action cmp=com.e21cn.im/cn.jpush.android.service.PushService (has extras) }, pkg:com.e21cn.im, connection:-1203505680
04-27 17:19:42.929 26720-26762/com.e21cn.im D/JIGUANG-JCore: [RequestCacheManager] Action - sendRequestInternal - connection:-1203505680, timeout:20000,sdkType:JPUSH, threadId:13090
04-27 17:19:42.929 26720-26720/com.e21cn.im D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
04-27 17:19:42.929 26720-26720/com.e21cn.im D/PhoneWindow: *FMB* isFloatingMenuEnabled return false
04-27 17:19:42.949 26720-26720/com.e21cn.im W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
04-27 17:19:42.949 26720-26720/com.e21cn.im D/AbsListView: Get MotionRecognitionManager
04-27 17:19:42.949 26720-26720/com.e21cn.im E/MotionRecognitionManager: mSContextService = null
04-27 17:19:42.949 26720-26720/com.e21cn.im E/MotionRecognitionManager: motionService = null
04-27 17:19:42.959 26720-27157/com.e21cn.im D/AndroidDemos: com.e21cn.im.util.http.io.ClientInputThread.run:121--->-----CCC----INPUT15114
04-27 17:19:42.959 26720-27157/com.e21cn.im D/AndroidDemos: com.e21cn.im.util.http.io.ClientInputThread.run:123--->15114:重新保存后的ID
04-27 17:19:42.959 26720-27156/com.e21cn.im E/output_thread: TranObjectType.OFFLINE
04-27 17:19:42.969 26720-26727/com.e21cn.im W/art: Suspending all threads took: 11.340ms
04-27 17:19:42.979 26720-26782/com.e21cn.im D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:36, connection:-1203505680, pkg:com.e21cn.im
04-27 17:19:42.979 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.fragment.MsgFragment.onActivityCreated:127--->onActivityCreated
04-27 17:19:42.979 26720-26720/com.e21cn.im E/MSGfragmet: initListView
04-27 17:19:42.979 26720-26782/com.e21cn.im D/JIGUANG-JCore: [NetworkingClient] Network listening...
04-27 17:19:42.979 26720-27156/com.e21cn.im D/AndroidDemos: com.e21cn.im.util.http.io.ClientoutputThread.run:107--->我是正常链接
04-27 17:19:42.989 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.fragment.MsgFragment.onResume:418--->onResume
04-27 17:19:43.009 26720-27160/com.e21cn.im E/MessageDB: getMsg
04-27 17:19:43.019 26720-27160/com.e21cn.im E/MessageDB: close
04-27 17:19:43.029 26720-27160/com.e21cn.im E/MessageDB: getMsg
04-27 17:19:43.029 26720-27160/com.e21cn.im E/MessageDB: close
04-27 17:19:43.049 26720-26720/com.e21cn.im I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@19bb01a2 time:98304760
04-27 17:19:43.619 26720-26782/com.e21cn.im D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:100, connection:-1203505680, pkg:com.e21cn.im
04-27 17:19:43.619 26720-26782/com.e21cn.im D/JIGUANG-JPush: [JPushDataAction] response:[MessagePush] - msgType:20, msgId:1, msgContent:com.e21cn.im
                                                             4c33682958fd239705e2e725
                                                             {"code":0,"sequence":28203} - JResponse{code=0}
04-27 17:19:43.619 26720-26720/com.e21cn.im D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=senddata.action cmp=com.e21cn.im/cn.jpush.android.service.PushService (has extras) }, pkg:com.e21cn.im, connection:-1203505680
04-27 17:19:43.619 26720-26782/com.e21cn.im D/JIGUANG-JCore: [NetworkingClient] Network listening...
04-27 17:19:43.619 26720-26720/com.e21cn.im D/AndroidDemos: com.e21cn.im.gui.activity.LoginActivity$1.gotResult:120--->别名设置成功。

#19

这日志里面没看到你的设置别名为"" 空串成功的信息

请注意参数和callback,最好获取callback中返回的别名值和code
https://docs.jiguang.cn/jpush/client/Android/android_api/#api_3


(蓝风) #20
04-27 17:27:10.339 7235-7235/? E/Zygote: MountEmulatedStorage()
04-27 17:27:10.339 7235-7235/? E/Zygote: v2
04-27 17:27:10.339 7235-7235/? I/libpersona: KNOX_SDCARD checking this for 10261
04-27 17:27:10.339 7235-7235/? I/libpersona: KNOX_SDCARD not a persona
04-27 17:27:10.339 7235-7235/? I/SELinux: Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-G6000_5.1.1 ver=51
04-27 17:27:10.349 7235-7235/? I/SELinux: Function: selinux_compare_spd_ram , priority [1] , priority version is VE=SEPF_SM-G6000_5.1.1_0051
04-27 17:27:10.349 7235-7235/? E/SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
04-27 17:27:10.349 7235-7235/? I/art: Late-enabling -Xcheck:jni
04-27 17:27:10.379 7235-7235/? D/TimaKeyStoreProvider: TimaSignature is unavailable
04-27 17:27:10.379 7235-7235/? D/ActivityThread: Added TimaKeyStore provider
04-27 17:27:10.399 7235-7235/com.e21cn.im I/InjectionManager: Inside getClassLibPath + mLibMap{0=, 1=}
04-27 17:27:10.399 7235-7235/com.e21cn.im I/InjectionManager: Inside getClassLibPath caller 
04-27 17:27:10.499 7235-7235/com.e21cn.im D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.0.5, buildId:359
04-27 17:27:10.499 7235-7235/com.e21cn.im D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
04-27 17:27:10.519 7235-7235/com.e21cn.im D/JIGUANG-JCore: [AndroidUtil] action:checkValidManifest
04-27 17:27:10.539 7235-7235/com.e21cn.im D/JIGUANG-JCore: [JCoreServiceUtils] set Push/Alarm Receiver enabled
04-27 17:27:10.559 7235-7235/com.e21cn.im D/JIGUANG-JCore: [JCoreGlobal] action:init - sdkVersion:1.1.2, buildId:130
04-27 17:27:10.559 7235-7235/com.e21cn.im D/JIGUANG-JCore: [JCoreGlobal] metadata: appKey - 4c33682958fd239705e2e725
04-27 17:27:10.559 7235-7235/com.e21cn.im D/JIGUANG-JCore: [JCoreGlobal] metadata: channel - developer-default
04-27 17:27:10.579 7235-7235/com.e21cn.im D/InjectionManager: InjectionManager
04-27 17:27:10.579 7235-7235/com.e21cn.im D/InjectionManager: fillFeatureStoreMap com.e21cn.im
04-27 17:27:10.579 7235-7235/com.e21cn.im I/InjectionManager: Constructor com.e21cn.im, Feature store :{}
04-27 17:27:10.579 7235-7235/com.e21cn.im I/InjectionManager: featureStore :{}
04-27 17:27:10.589 7235-7235/com.e21cn.im W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
04-27 17:27:10.609 7235-7235/com.e21cn.im D/PhoneWindow: *FMB* installDecor mIsFloating : false
04-27 17:27:10.609 7235-7235/com.e21cn.im D/PhoneWindow: *FMB* installDecor flags : 8454400
04-27 17:27:10.649 7235-7235/com.e21cn.im D/Activity: performCreate Call Injection manager
04-27 17:27:10.649 7235-7235/com.e21cn.im I/InjectionManager: dispatchOnViewCreated > Target : com.e21cn.im.gui.activity.LoginActivity isFragment :false
04-27 17:27:10.659 7235-7235/com.e21cn.im D/ViewRootImpl: Buffer Count from app info with  ::-1 && -1 for :: com.e21cn.im from View :: -1 DBQ Enabled ::false false
04-27 17:27:10.659 7235-7286/com.e21cn.im D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
04-27 17:27:10.699 7235-7235/com.e21cn.im D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
04-27 17:27:10.699 7235-7235/com.e21cn.im D/PhoneWindow: *FMB* isFloatingMenuEnabled return false
04-27 17:27:10.749 7235-7286/com.e21cn.im I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build:  (I716aebe4f9)
                                                        OpenGL ES Shader Compiler Version: E031.25.03.04
                                                        Build Date: 07/01/15 수
                                                        Local Branch: AU_LINUX_ANDROID_LA.BR.1.1.3_RB1.05.01.00.032.031_02060873_02063264
                                                        Remote Branch: 
                                                        Local Patches: 
                                                        Reconstruct Branch: 
04-27 17:27:10.749 7235-7286/com.e21cn.im I/OpenGLRenderer: Initialized EGL, version 1.4
04-27 17:27:10.759 7235-7286/com.e21cn.im D/OpenGLRenderer: Get maximum texture size. GL_MAX_TEXTURE_SIZE is 4096
04-27 17:27:10.759 7235-7286/com.e21cn.im D/OpenGLRenderer: Enabling debug mode 0
04-27 17:27:10.779 7235-7235/com.e21cn.im D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=run.action cmp=com.e21cn.im/cn.jpush.android.service.PushService (has extras) }, pkg:com.e21cn.im, connection:0
04-27 17:27:10.779 7235-7282/com.e21cn.im D/JIGUANG-JCore: [ARunAction]  pkg:com.e21cn.im
04-27 17:27:10.779 7235-7282/com.e21cn.im D/JIGUANG-JCore: [ARunAction] Bundle[{action=cn.jpush.android.intent.REPORT, report.extra.info=, report=crash_log, sdktype=JCORE}]
04-27 17:27:10.779 7235-7235/com.e21cn.im D/JIGUANG-JCore: [PushService] onStartCommand - intent:Intent { act=cn.jpush.android.intent.INIT cmp=com.e21cn.im/cn.jpush.android.service.PushService (has extras) }, pkg:com.e21cn.im, connection:0
04-27 17:27:10.779 7235-7282/com.e21cn.im D/JIGUANG-JCore: [JiguangTcpManager] Action - restartNetworkingClient, pid:7235
04-27 17:27:10.789 7235-7301/com.e21cn.im I/JIGUANG-JCore: [NetworkingClient] Begin to run in ConnectingThread - id:13186
04-27 17:27:10.819 7235-7235/com.e21cn.im I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@1b7c5399 time:98752539
04-27 17:27:10.829 7235-7301/com.e21cn.im D/JIGUANG-JCore: [ConnectingHelper] To get sis - host:s.jpush.cn, port:19000
04-27 17:27:10.839 7235-7301/com.e21cn.im D/JIGUANG-JCore: [ConnectingHelper] SIS Receiving...
04-27 17:27:10.909 7235-7301/com.e21cn.im I/JIGUANG-JCore: [ConnectingHelper] Get sis info succeed with host: s.jpush.cn
04-27 17:27:10.909 7235-7301/com.e21cn.im D/JIGUANG-JCore: [ConnectingHelper] Open connection with main - ip:139.198.190.172, port:7006
04-27 17:27:10.969 7235-7301/com.e21cn.im I/JIGUANG-JCore: [ConnectingHelper] Succeed to open connection - ip:139.198.190.172, port:7006
04-27 17:27:10.969 7235-7301/com.e21cn.im I/JIGUANG-JCore: [ConnectingHelper] Login with - juid:8048909169, appKey:4c33682958fd239705e2e725, sdkVersion:65794, pushVersion:196613, analyticsVersion:0 ,shareVersion:0, pluginPlatformType:0
04-27 17:27:11.019 7235-7301/com.e21cn.im D/JIGUANG-JCore: [JCommands] Action - receivedCommand - cmd:1
04-27 17:27:11.029 7235-7301/com.e21cn.im I/JIGUANG-JCore: [ConnectingHelper] Login succeed - sid:43840, serverTime;1493285229000
04-27 17:27:11.029 7235-7301/com.e21cn.im D/JIGUANG-JCore: [ConnectingHelper] Action - sendServerTimer
04-27 17:27:11.079 7235-7289/com.e21cn.im D/JIGUANG-JCore: [JiguangTcpManager] Action - onLoggedIn - connection:-1203502176
04-27 17:27:11.079 7235-7289/com.e21cn.im D/JIGUANG-JCore: [ConnectingHelper] Action - sendConnectionChanged
04-27 17:27:11.079 7235-7289/com.e21cn.im I/JIGUANG-JCore: [ReportHelper] periodTasks...
04-27 17:27:11.079 7235-7301/com.e21cn.im D/JIGUANG-JCore: [NetworkingClient] Network listening...
04-27 17:27:26.089 7235-7289/com.e21cn.im D/JIGUANG-JCore: [JiguangTcpManager] Send heart beat
04-27 17:27:26.149 7235-7301/com.e21cn.im D/JIGUANG-JCore: [NetworkingClient] Received bytes - len:36, connection:-1203502176, pkg:com.e21cn.im
04-27 17:27:26.149 7235-7301/com.e21cn.im D/JIGUANG-JCore: [NetworkingClient] Network listening...
04-27 17:27:26.159 7235-7289/com.e21cn.im D/JIGUANG-JCore: [JiguangTcpManager] Action - onHeartbeatSucceed - connection:-1203502176

(蓝风) #21

我的意思是好像没有调用重新设置别名的方法。 刚才给你发的是之前的设置别名的LOG 这里才是置为空。但是这里好像没走。然后我结束程序的方法倒是走了


(蓝风) #22

还有就是其实我别名已经修改了 但是还是在给我之前的帐号推送。。。 也就是我退出来 没有设置为空 但是我重新登陆的时候 设置了跟之前不一样的别名 但是还是我之前的帐号收到的推送。


#23

你的意思是设置了不一样的别名但是收到的还是原别名的推送的意思?

这只能说明别名设置的不成功呀。

你取一下这个的callback


确认下设置的值和状态码是否为0


(蓝风) #25

是设置成功了的。但是还是提送到之前的 我打印的是callback返回的0.在哪里打印了log的。