只集成了JMessage也可以使用推送服务发送通知吗


(* Dlw☠) #1

如题。

刚才试了下 推送成功


#2

那应该用的较低版本的 JMessage吧?新版本的 JMessage是和JPush做了分离的


(* Dlw☠) #3

新版
> pod ‘JCore’, ‘~> 1.1.6’

pod 'JPush', '~> 3.0.7'
pod 'JMessage', '~> 3.4.0'

只是pod加入了JPush,但是没做初始化集成。


#4

看下你的客户端日志信息。


(* Dlw☠) #5

代码中并没有使用JPush的相关内容。只有JMessage。

> 2017-12-15 12:05:43.862894+0800 iMMusicianUnity[13620:5544393]  | JIGUANG | I - [JMessage] this is official version SDK.
> 2017-12-15 12:05:43.866890+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JMessage] Action - jmsg_updateDBWithCompletionHandler:
> 2017-12-15 12:05:43.868578+0800 iMMusicianUnity[13620:5544393]  | JIGUANG | D - [JMSGDBMigrateHelper] already newest DB version :9
> 2017-12-15 12:05:43.870207+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JMessage] Action - setupJMessage:::::
> 2017-12-15 12:05:43.873898+0800 iMMusicianUnity[13620:5544393]  | JIGUANG | I - [JMSGClientController] 
> ------------------- JMessage SDK --------------------
> ------------------ JMessage SDK version:3.4.0, buildId:199 ---------
> --------------------JCore Lib Version:1.1.6----------------------------
> -----------------AppKey:1adc5a7a9e9e52ef3c2e14be----------------
> ----------------------------------------------------------------
> 2017-12-15 12:05:43.882290+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | I - [JMSGClientController] Action - jmessage setup
> 2017-12-15 12:05:43.883962+0800 iMMusicianUnity[13620:5544393]  | JIGUANG | I - [JIGUANGClientController] Action - setup
> 2017-12-15 12:05:43.890447+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGDBManager] Action - initDB
> 2017-12-15 12:05:43.896707+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JMSGDBManager] Action - setupDB
> 2017-12-15 12:05:43.900401+0800 iMMusicianUnity[13620:5544139] refreshPreferences: HangTracerEnabled: 0
> 2017-12-15 12:05:43.900460+0800 iMMusicianUnity[13620:5544139] refreshPreferences: HangTracerDuration: 500
> 2017-12-15 12:05:43.900491+0800 iMMusicianUnity[13620:5544139] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
> 2017-12-15 12:05:43.902019+0800 iMMusicianUnity[13620:5544467]  | JIGUANG | D - [JMSGReceiver] Action - p_applicationDidBecomeActive
> GfxDevice: creating device client; threaded=1
> Initializing Metal device caps: Apple A10 GPU
> 2017-12-15 12:05:43.995979+0800 iMMusicianUnity[13620:5544467]  | JIGUANG | D - [JMSGDBManager] The current user db path: /var/mobile/Containers/Data/Application/E72B6601-0F73-4513-939E-2D83884204B0/Documents/1009224_110533393/JMessage_1009224_110533393.db
> 2017-12-15 12:05:44.041907+0800 iMMusicianUnity[13620:5544469]  | JIGUANG | D - [JIGUANGPageFlow] trySetupSession
> 2017-12-15 12:05:44.042702+0800 iMMusicianUnity[13620:5544469]  | JIGUANG | D - [JIGUANGPageFlow] setupSession
> Initialize engine version: 5.6.3f1 (d3101c3b8468)
> 2017-12-15 12:05:44.071254+0800 iMMusicianUnity[13620:5544474]  | JIGUANG | D - [JIGUANGUserActiveReport] report content {
>     activities =     (
>     );
>     date = "2017-12-14";
>     duration = "7.9";
>     itime = 1513264547;
>     "session_id" = ea3aece4b6aa74101cd659aaa3710b5d;
>     time = "23:15:47";
>     timezone = "+8";
>     type = "active_terminate";
> }
> =================================================================
> 2017-12-15 12:05:46.089387+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JIGUANGHttpSessionController] Action - setupSession
> 2017-12-15 12:05:46.091067+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JIGUANGPageFlow] setupSession
> 2017-12-15 12:05:46.094112+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JIGUANGPageFlow] resetCurrentPage
> 2017-12-15 12:05:46.204997+0800 iMMusicianUnity[13620:5544463] [] nw_socket_setup_notsent_lowat setsockopt TCP_NOTSENT_LOWAT(16384) failed on fd 12: [22] Invalid argument
> 2017-12-15 12:05:46.206897+0800 iMMusicianUnity[13620:5544463] TIC TCP Conn Failed [6:0x1c0171e80]: 1:54 Err(54)
> 2017-12-15 12:05:46.215832+0800 iMMusicianUnity[13620:5544463] Task <0C16BB8F-0DF3-42C4-ADB6-504E5CDA4613>.<0> HTTP load failed (error code: -1005 [1:54])
> 2017-12-15 12:05:46.217789+0800 iMMusicianUnity[13620:5544442] NSURLConnection finished with error - code -1005
> 2017-12-15 12:05:46.247031+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGUtilities] wifi 信息:{
>     itime = 1513310746;
>     "mac_address" = "88:25:93:60:8d:7";
>     ssid = BangAP;
> }
> 2017-12-15 12:05:46.260533+0800 iMMusicianUnity[13620:5544474]  | JIGUANG | D - [JIGUANGUtilities] WWAN 信息:{
>     generation = wifi;
>     itime = 1513310746;
>     "mobile_country_code" = 460;
>     "mobile_network_code" = 01;
>     "radio_type" = lte;
> }
> 2017-12-15 12:05:46.288307+0800 iMMusicianUnity[13620:5544474]  | JIGUANG | D - [JIGUANGNetworkController] Action - trySetupSession
> 2017-12-15 12:05:46.288993+0800 iMMusicianUnity[13620:5544466]  | JIGUANG | D - [JIGUANGHttpSessionController] Action - setupSession
> 2017-12-15 12:05:46.289690+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGNetworkController] userDefaut verified: 1, curNetworkStatus: 2
> 2017-12-15 12:05:46.290371+0800 iMMusicianUnity[13620:5544466]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPFNetworkIsConnectingNotification (null)
> 2017-12-15 12:05:46.290892+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGSessionController] Action - connect
> 2017-12-15 12:05:46.291405+0800 iMMusicianUnity[13620:5544466]  | JIGUANG | D - [JIGUANGSessionController] Action - isSisOnProtect
> 2017-12-15 12:05:46.291920+0800 iMMusicianUnity[13620:5544466]  | JIGUANG | D - [JIGUANGSessionController] sis is not on protect
> 2017-12-15 12:05:46.292508+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGSessionController] Action - reset sis cache
> 2017-12-15 12:05:46.292929+0800 iMMusicianUnity[13620:5544466]  | JIGUANG | D - [JIGUANGAddressController] 开始Sis解析
> 2017-12-15 12:05:46.293777+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest
> 2017-12-15 12:05:46.334141+0800 iMMusicianUnity[13620:5544463] TIC TCP Conn Failed [7:0x1c01717c0]: 3:-9802 Err(-9802)
> 2017-12-15 12:05:46.345752+0800 iMMusicianUnity[13620:5544469]  | JIGUANG | D - [JIGUANGAddressController] get address :118.145.3.81 from host : s.jpush.cn
> 2017-12-15 12:05:46.346197+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort
> 2017-12-15 12:05:46.346626+0800 iMMusicianUnity[13620:5544469]  | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
> 2017-12-15 12:05:46.354223+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGUdpSocket] send udp data
> 2017-12-15 12:05:46.354985+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
> 2017-12-15 12:05:46.355879+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
> 2017-12-15 12:05:46.364461+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGAddressController] Action - parse
> 2017-12-15 12:05:46.392791+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JIGUANGAddressController] Action - parse ips address
> 2017-12-15 12:05:46.446154+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGAddressController] Action - parseOptionAddress
> 2017-12-15 12:05:46.671458+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
> 2017-12-15 12:05:46.675400+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGAddressController] receive sis result
> 2017-12-15 12:05:46.676450+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGSessionController] Action - connectTcp
> 2017-12-15 12:05:46.677104+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGSessionController] Action - connectTcpAddress:
> 2017-12-15 12:05:46.677801+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGSessionController] connectTcp:103.229.215.40:7008
> 2017-12-15 12:05:46.678622+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | I - [JIGUANGSessionController] connecting with coreAddr 103.229.215.40,port 7008
> 2017-12-15 12:05:46.711933+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGTcpSocket] 连接主机成功
> 2017-12-15 12:05:46.720099+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGAddressController] Action - sisReport:port
> 2017-12-15 12:05:46.731913+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidSetupNotification (null)
> UnloadTime: 0.997458 ms
> 2017-12-15 12:05:46.767615+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
> 2017-12-15 12:05:46.768153+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGUserDefaultsController] current login flag is:login
> 2017-12-15 12:05:46.770631+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGIMController] loginState:1
> 2017-12-15 12:05:46.822408+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | I - [JIGUANGLogin] 
> ----- login result -----
> uid:6260029900 
> registrationID:1a1018970aa3c8ba371
> 2017-12-15 12:05:46.823000+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
> 2017-12-15 12:05:46.823414+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
> 2017-12-15 12:05:46.823808+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGSessionController] Event - onLoginRespond
> 2017-12-15 12:05:46.824757+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidLoginNotification (null)
> 2017-12-15 12:05:46.893227+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGReport] send report:(
>         {
>         date = "2017-12-15";
>         itime = 1513310744;
>         "session_id" = a361c9a0bffcf5a81692ed568acad333;
>         time = "12:05:44";
>         timezone = "+8";
>         type = "active_launch";
>     },
>         {
>         data =         (
>                         {
>                 cell =                 (
>                                         {
>                         generation = wifi;
>                         itime = 1513264540;
>                         "mobile_country_code" = 460;
>                         "mobile_network_code" = 01;
>                         "radio_type" = lte;
>                     }
>                 );
>                 itime = 1513264540;
>                 wifi =                 (
>                                         {
>                         itime = 1513264540;
>                         "mac_address" = "88:25:93:60:8d:7";
>                         ssid = BangAP;
>                     }
>                 );
>             }
>         );
>         itim
> 2017-12-15 12:05:46.933685+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMessage] Action - addDelegate::
> 2017-12-15 12:05:46.934112+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGUser] Action - loginWithUsername::: - username:1009224
> 2017-12-15 12:05:46.994337+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP:1
> 2017-12-15 12:05:47.015976+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGIMController] send im request with type:jmsg_type_login,rid:958
> 2017-12-15 12:05:47.018869+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
> 2017-12-15 12:05:47.328248+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JIGUANGUserDefaultsController] Action - setCurrentDeviceToken - 096447d5c0d16d7cb36c17646861ca55bbc084d29c1d410e7082dd380bbc2b0f
> 2017-12-15 12:05:47.366750+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGReceiver] Action - p_didJPushDidLoginNotification:
> 2017-12-15 12:05:47.367186+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncConversation] Action - startSyncHeartbeatTimer
> Initialising for graphics device type Metal
> 2017-12-15 12:05:47.367457+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGSyncConversation] Action - p_startSyncHeartBeatTimer
> 2017-12-15 12:05:47.368005+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncConversation] Action - stopSyncHeartbeatTimer
> 2017-12-15 12:05:47.369003+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGSyncConversation] Action - jmsg_sendSyncConversationSyncCheck msgSynckey:1513260307191,eventSyncKey:0
> 2017-12-15 12:05:47.372235+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGUser+JMSGInner] Action - jmsg_toRequestProtocalForReport
> 2017-12-15 12:05:47.407889+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGIMDispatchController+imple] receive log in response
> 2017-12-15 12:05:47.408432+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
> 2017-12-15 12:05:47.409134+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
> 2017-12-15 12:05:47.411242+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGIMController] Request have response for type - jmsg_type_login
> 2017-12-15 12:05:47.412495+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGUserDefaultsController] set im flag with:login
> 2017-12-15 12:05:47.413826+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP:23
> 2017-12-15 12:05:47.422208+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGIMController] send im request with type:jmsg_type_reportInformation,rid:962
> 2017-12-15 12:05:47.422671+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
> 2017-12-15 12:05:47.437213+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP:39
> 2017-12-15 12:05:47.452146+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGIMController] send im request with type:jmsg_type_syncCheck,rid:966
> 2017-12-15 12:05:47.453844+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
> 2017-12-15 12:05:47.455153+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMessage+JMSGInner] Action - jmsg_userLogoutClearAllCache
> 2017-12-15 12:05:47.455717+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGSyncConversation] Action - stopSyncHeartbeatTimer
> 2017-12-15 12:05:47.456086+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGDBManager] Action - logOutDB
> 2017-12-15 12:05:47.457604+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | I - [JMessage+JMSGInner] Action - jmsg_clearCurrentUser
> 2017-12-15 12:05:47.459263+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | I - [JMSGUser] tcp login user success, user: uid=110533393,username=1009224,appkey=1adc5a7a9e9e52ef3c2e14be
> 2017-12-15 12:05:47.459646+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMessage] Action - jmsg_updateDBWithCompletionHandler:
> 2017-12-15 12:05:47.461268+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGDBMigrateHelper] already newest DB version :9
> 2017-12-15 12:05:47.462228+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGDBManager] Action - initDB
> 2017-12-15 12:05:47.462680+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGDBManager] Action - setupDB
> 2017-12-15 12:05:47.463847+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGDBManager] The current user db path: /var/mobile/Containers/Data/Application/E72B6601-0F73-4513-939E-2D83884204B0/Documents/1009224_110533393/JMessage_1009224_110533393.db
> 2017-12-15 12:05:47.471371+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGUser+JMSGInner] Action - jmsg_updateCurrentUserInfoWithHandler
> 2017-12-15 12:05:47.471771+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGUserHttp] Action - usersInfoArrayWithIDArray::::, id count: 1, type:request user by username, appkey:1adc5a7a9e9e52ef3c2e14be
> 2017-12-15 12:05:47.472218+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGHttpManager] Action - getTokenAuthorizationByUid:::
> 2017-12-15 12:05:47.472500+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGHttpManager] start get token authorization by uid
> 2017-12-15 12:05:47.474107+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGUserHttp] Actioin - getUserBlackListCompletionHandler:
> 2017-12-15 12:05:47.474651+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGFriendManager+JMSGInner] Action - p_getgetFriendListCompletionHandler
> 2017-12-15 12:05:47.475680+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGUserHttp] Actioin - getFriendListWithParameter:
> 2017-12-15 12:05:47.476191+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGUserHttp] Actioin - getNoDisturbListWithParameter::
> 2017-12-15 12:05:47.476647+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGSyncConversation] Action - jmsg_startSyncHeartBeatTimerFromLogin
> 2017-12-15 12:05:47.477169+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncConversation] Action - p_startSyncHeartBeatTimer
> 2017-12-15 12:05:47.477469+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGSyncConversation] Action - stopSyncHeartbeatTimer
> 2017-12-15 12:05:47.477895+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncConversation] Action - jmsg_sendSyncConversationSyncCheck msgSynckey:1513260307191,eventSyncKey:0
> 2017-12-15 12:05:47.484752+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP:39
> 2017-12-15 12:05:47.501206+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JIGUANGIMController] send im request with type:jmsg_type_syncCheck,rid:972
> 2017-12-15 12:05:47.502512+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
> 2017-12-15 12:05:47.522556+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGIMDispatchController+imple] receive sync check response
> 2017-12-15 12:05:47.523346+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
> 2017-12-15 12:05:47.523897+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
> 2017-12-15 12:05:47.524455+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGIMController] Request have response for type - jmsg_type_syncCheck
> 2017-12-15 12:05:47.562110+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGIMDispatchController+imple] receive SyncConversationResp response
> 2017-12-15 12:05:47.563307+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
> 2017-12-15 12:05:47.563996+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JMSGSyncConversation] Action - p_receiveSyncCheckResponseInJMSGThread: syncKey:1513309146491
> 2017-12-15 12:05:47.566001+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - jmsg_processAllReceivedSyncChcekResponse
> 2017-12-15 12:05:47.568273+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGSyncMessage] Action - syncMessageContentWithSyncConversationModelDic:: count:1
> 2017-12-15 12:05:47.568960+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncMessage] Action - p_requestMessContentWithParameters:::
> 2017-12-15 12:05:47.569410+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncMessageHttp] Action - getMessageContentListWithMsgidArray::
> 2017-12-15 12:05:47.629185+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JIGUANGIMDispatchController+imple] receive report information response
> 2017-12-15 12:05:47.629796+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
> 2017-12-15 12:05:47.630281+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
> 2017-12-15 12:05:47.630713+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGIMController] Request have response for type - jmsg_type_reportInformation
> 2017-12-15 12:05:47.630977+0800 iMMusicianUnity[13620:5544442]  | JIGUANG | I - [JMSGUser+JMSGInner] report sdkversion success
> 2017-12-15 12:05:47.665074+0800 iMMusicianUnity[13620:5544139] jmessage login
> 2017-12-15 12:05:47.665400+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGUser] Action - updateMyInfoWithParameter:::
> 2017-12-15 12:05:47.678436+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGUserHttp] Actioin - updateUserInfoWithParameter::
> 2017-12-15 12:05:47.722655+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGIMDispatchController+imple] receive sync check response
> 2017-12-15 12:05:47.724104+0800 iMMusicianUnity[13620:5544469]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
> 2017-12-15 12:05:47.725411+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
> 2017-12-15 12:05:47.726523+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGIMController] Request have response for type - jmsg_type_syncCheck
> 2017-12-15 12:05:47.752457+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JIGUANGIMDispatchController+imple] receive SyncConversationResp response
> 2017-12-15 12:05:47.753724+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
> 2017-12-15 12:05:47.754250+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGSyncConversation] Action - p_receiveSyncCheckResponseInJMSGThread: syncKey:1513309146491
> 2017-12-15 12:05:47.754643+0800 iMMusicianUnity[13620:5544469]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - jmsg_processAllReceivedSyncChcekResponse
> 2017-12-15 12:05:47.755171+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGSyncMessage] Action - syncMessageContentWithSyncConversationModelDic:: count:1
> 2017-12-15 12:05:47.755554+0800 iMMusicianUnity[13620:5544469]  | JIGUANG | D - [JMSGSyncMessage] Action - p_requestMessContentWithParameters:::
> 2017-12-15 12:05:47.755875+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGSyncMessageHttp] Action - getMessageContentListWithMsgidArray::
> 2017-12-15 12:05:50.785779+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGHttpManager] get token success, token is Basic MTEwNTMzMzkzOnRjeDh4dk9JU2F5a1hNYW4yYXRmQzhDMGg2bz0=
> 2017-12-15 12:05:50.786958+0800 iMMusicianUnity[13620:5544471]  | JIGUANG | D - [JMSGHttpManager] conserved request count :8
> 2017-12-15 12:05:50.944417+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGUser+JMSGInner] Logged in myInfo - <JMSGUser, 0x1c43c1d10> - [ARRAY - uid:110533393, username:1009224, nickname:烧锅炉的, noteName:<null>, noteText:<null>, gender:0, birthday:<null>, avatar:<null>, region:<null>, siganature:<null>, address:<null>, createTime:<null>, extras:<null>, appKey:1adc5a7a9e9e52ef3c2e14be]
> 2017-12-15 12:06:16.506523+0800 iMMusicianUnity[13620:5544392] Task <A20C7230-F707-4F1F-8133-DF661A446B51>.<0> HTTP load failed (error code: -999 [1:89])
> 2017-12-15 12:06:16.582570+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JIGUANGReport] send report:(
>         {
>         activities =         (
>         );
>         date = "2017-12-14";
>         duration = "7.9";
>         itime = 1513264547;
>         "session_id" = ea3aece4b6aa74101cd659aaa3710b5d;
>         time = "23:15:47";
>         timezone = "+8";
>         type = "active_terminate";
>     }
> ) log succed
> 2017-12-15 12:06:16.668176+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JIGUANGReport] send report:(
>         {
>         data =         (
>                         {
>                 cell =                 (
>                                         {
>                         generation = wifi;
>                         itime = 1513310746;
>                         "mobile_country_code" = 460;
>                         "mobile_network_code" = 01;
>                         "radio_type" = lte;
>                     }
>                 );
>                 itime = 1513310746;
>                 wifi =                 (
>                                         {
>                         itime = 1513310746;
>                         "mac_address" = "88:25:93:60:8d:7";
>                         ssid = BangAP;
>                     }
>                 );
>             }
>         );
>         itime = 1513310746;
>         "network_type" = "WIFI,";
>         type = "loc_info";
>     }
> ) log succed
> 2017-12-15 12:06:21.001093+0800 iMMusicianUnity[13620:5544463] Task <7F8B2B06-58A2-41B8-98FF-D3915BB95C8E>.<1> finished with error - code: -1001
> 2017-12-15 12:06:21.001559+0800 iMMusicianUnity[13620:5544463] Task <444811E6-C89B-4E4F-98EA-139E710FBF2A>.<2> finished with error - code: -1001
> 2017-12-15 12:06:21.004252+0800 iMMusicianUnity[13620:5544466] Task <7F8B2B06-58A2-41B8-98FF-D3915BB95C8E>.<1> HTTP load failed (error code: -999 [1:89])
> 2017-12-15 12:06:21.005087+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | E - [JMSGHttpManager] http request failed, httpMethod is Post, error: Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={NSUnderlyingError=0x1c04583c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=https://sync.im.jiguang.cn/messages, NSErrorFailingURLKey=https://sync.im.jiguang.cn/messages, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=请求超时。}
> 2017-12-15 12:06:21.006769+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGHttpManager] Action - pp_convertToLocalError:::
> 2017-12-15 12:06:21.009179+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | E - [JMSGHttpManager] data is nil, error:Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={NSUnderlyingError=0x1c04583c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=https://sync.im.jiguang.cn/messages, NSErrorFailingURLKey=https://sync.im.jiguang.cn/messages, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=请求超时。}
> 2017-12-15 12:06:21.015457+0800 iMMusicianUnity[13620:5544466]  | JIGUANG | E - [JMSGHttpManager] request error, error: Error Domain=jmsg_error Code=860021 "network result error unexpected!" UserInfo={NSLocalizedDescription=network result error unexpected!}
> 2017-12-15 12:06:21.017500+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMSGSyncMessage] Action - p_requestMessContentWithParameters:::
> 2017-12-15 12:06:21.020330+0800 iMMusicianUnity[13620:5544466]  | JIGUANG | D - [JMSGSyncMessageHttp] Action - getMessageContentListWithMsgidArray::
> 2017-12-15 12:06:21.023678+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | E - [JMSGHttpManager] http request failed, httpMethod is Post, error: Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={NSUnderlyingError=0x1c445ec00 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=https://sync.im.jiguang.cn/messages, NSErrorFailingURLKey=https://sync.im.jiguang.cn/messages, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=请求超时。}
> 2017-12-15 12:06:21.030653+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JMSGHttpManager] Action - pp_convertToLocalError:::
> 2017-12-15 12:06:21.032154+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | E - [JMSGHttpManager] data is nil, error:Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={NSUnderlyingError=0x1c445ec00 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=https://sync.im.jiguang.cn/messages, NSErrorFailingURLKey=https://sync.im.jiguang.cn/messages, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=请求超时。}
> 2017-12-15 12:06:21.034473+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | E - [JMSGHttpManager] request error, error: Error Domain=jmsg_error Code=860021 "network result error unexpected!" UserInfo={NSLocalizedDescription=network result error unexpected!}
> 2017-12-15 12:06:21.034691+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncMessage] Action - p_requestMessContentWithParameters:::
> 2017-12-15 12:06:21.034876+0800 iMMusicianUnity[13620:5544463]  | JIGUANG | D - [JMSGSyncMessageHttp] Action - getMessageContentListWithMsgidArray::
> 2017-12-15 12:06:22.465583+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncMessage] success get the messages content.conv count:1
> 2017-12-15 12:06:22.471362+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - p_processSingleTaskWithSyncConversationModel: con_id=110433352_110533393
> 2017-12-15 12:06:22.473507+0800 iMMusicianUnity[13620:5544771]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - pp_createSingleConversationWithSyncConversation:: con_id=110433352_110533393
> 2017-12-15 12:06:22.477340+0800 iMMusicianUnity[13620:5544420]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - pp_analysisMessageWithSyncConversationModel: con_id=110433352_110533393
> 2017-12-15 12:06:22.480839+0800 iMMusicianUnity[13620:5544771]  | JIGUANG | D - [JMSGMessageDBHelper] Action - insertMessageList:messageTable:message_table_D0214A8D98EA00B931F4D42A1513258404
> 2017-12-15 12:06:22.509660+0800 iMMusicianUnity[13620:5544770]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - pp_completedTaskWithSycnConversationModel: con_id=110433352_110533393
> 2017-12-15 12:06:22.510850+0800 iMMusicianUnity[13620:5544771]  | JIGUANG | D - [JMSGSyncMessageDBHelper] Action - insertOnlineMessageWithMsgModelArray:conversationTargetId:110433352
> 2017-12-15 12:06:22.521587+0800 iMMusicianUnity[13620:5544770]  | JIGUANG | D - [JMSGSyncConversation] Action - jmsg_sendSyncConversationACK
> 2017-12-15 12:06:22.522519+0800 iMMusicianUnity[13620:5544771]  | JIGUANG | D - [JMSGSyncConversation] Action - jmsg_updateSyncConversationSyncKey:
> 2017-12-15 12:06:22.524853+0800 iMMusicianUnity[13620:5544770]  | JIGUANG | D - [JMSGSyncMessage] success get the messages content.conv count:1
> 2017-12-15 12:06:22.526676+0800 iMMusicianUnity[13620:5544771]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - p_processSingleTaskWithSyncConversationModel: con_id=110433352_110533393
> 2017-12-15 12:06:22.527507+0800 iMMusicianUnity[13620:5544770]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - pp_createSingleConversationWithSyncConversation:: con_id=110433352_110533393
> 2017-12-15 12:06:22.530520+0800 iMMusicianUnity[13620:5544770]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - pp_analysisMessageWithSyncConversationModel: con_id=110433352_110533393
> 2017-12-15 12:06:22.531775+0800 iMMusicianUnity[13620:5544771]  | JIGUANG | D - [JMSGMessageDBHelper] Action - insertMessageList:messageTable:message_table_D0214A8D98EA00B931F4D42A1513258404
> 2017-12-15 12:06:22.554189+0800 iMMusicianUnity[13620:5544771]  | JIGUANG | D - [JMSGSyncConversation+JMSGInner] Action - pp_completedTaskWithSycnConversationModel: con_id=110433352_110533393
> 2017-12-15 12:06:22.555222+0800 iMMusicianUnity[13620:5544771]  | JIGUANG | D - [JMSGSyncMessageDBHelper] Action - insertOnlineMessageWithMsgModelArray:conversationTargetId:110433352
> 2017-12-15 12:06:22.578821+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP:41
> 2017-12-15 12:06:22.607684+0800 iMMusicianUnity[13620:5544392]  | JIGUANG | D - [JIGUANGIMController] send im request with type:jmsg_type_sync_conversation_ack,rid:978
> 2017-12-15 12:06:22.608810+0800 iMMusicianUnity[13620:5544770]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest

#6

你应该是有调用JMessage的这个方法

这里有得到registrationID,但如果你不集成 JPush,不写获取消息的方法的话,你消息是取不到的,只是apns通知能得到提示而已