demo 收不到消息


(水柔) #1

我的用DEMO测试也是收不到通知,看是能收到自定义消息。MessageID :127,registrationID:13165ffa4e2f1e55374


#2

MessageID 提供错误,请你提供正确的 ID 值


(水柔) #3

只看到有session_id,没有看到messageID


#4

MessageID怎么获取,上述链接的帖子末尾是有详细说明的


(水柔) #5

MessageID:51791400493932775, registrationID:141fe1da9e8c0dae1e1


(水柔) #6

我用的是Hbuilder的ios Demo


#7

报错如下:DeviceTokenNotForTopic
该App用户的 token 对应的 topic 和你上传证书对应的 topic 不匹配(即 bundleid 不一致)
请检查客户端配置的所有涉及 bundle ID 的地方


(水柔) #8
objc[30981]: Class MPRequest is implemented in both /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer (0x1b6970a68) and /var/containers/Bundle/Application/3A1C83F0-B85C-4921-9C30-C7D52913F0EB/HBuilder.app/HBuilder (0x101870690). One of the two will be used. Which one is undefined.
2018-06-27 16:11:42.223698+0800 HBuilder[30981:6279758] [DYMTLInitPlatform] platform initialization successful
2018-06-27 16:11:42.331459+0800 HBuilder[30981:6279571] +[CATransaction synchronize] called within transaction
2018-06-27 16:11:42.445880+0800 HBuilder[30981:6279571] ######===>>>>New Device Model:[iPhone7,1]
2018-06-27 16:11:42.497932+0800 HBuilder[30981:6279571] -canOpenURL: failed for URL: "hbuilder://" - error: "未能完成操作。(“OSStatus”错误 -10814。)"
2018-06-27 16:11:42.506622+0800 HBuilder[30981:6279739] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2018-06-27 16:11:42.517108+0800 HBuilder[30981:6279777]  | JIGUANG | I - [JIGUANGService] 
--------------------------- JPush Log ----------------------------
--------------------JPush SDK Version:3.0.7--build:45----------
--------------------JCore Lib Version:1.1.6--build:29----------
-----------------AppKey:9b9bab05211ea625d9c7fa04----------------
----------------------------------------------------------------
2018-06-27 16:11:42.520052+0800 HBuilder[30981:6279739]  | JIGUANG | I - [JIGUANGClientController] Action - jpush setup
2018-06-27 16:11:42.520927+0800 HBuilder[30981:6279777]  | JIGUANG | I - [JIGUANGClientController] Action - setup
2018-06-27 16:11:42.706433+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGPageFlow] trySetupSession
2018-06-27 16:11:42.707189+0800 HBuilder[30981:6279739]  | JIGUANG | D - [JIGUANGPageFlow] setupSession
2018-06-27 16:11:42.789046+0800 HBuilder[30981:6279803]  | JIGUANG | D - [JIGUANGService] Action - registerDeviceToken: <1e122006 522da211 8586c437 19fedd54 b47b50ee 77cd1eec 2c051c79 b50492dc>
2018-06-27 16:11:42.789380+0800 HBuilder[30981:6279571] application--didRegisterForRemoteNotificationsWithDeviceToken[<1e122006 522da211 8586c437 19fedd54 b47b50ee 77cd1eec 2c051c79 b50492dc>]
2018-06-27 16:11:42.804357+0800 HBuilder[30981:6279747] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2018-06-27 16:11:42.810724+0800 HBuilder[30981:6279792]  | JIGUANG | D - [JIGUANGPageFlow] resetCurrentPage
2018-06-27 16:11:42.817783+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGUserDefaultsController] Action - setCurrentDeviceToken - 1e122006522da2118586c43719fedd54b47b50ee77cd1eec2c051c79b50492dc
2018-06-27 16:11:42.820314+0800 HBuilder[30981:6279747]  | JIGUANG | D - [JIGUANGNetworkController] Action - trySetupSession
2018-06-27 16:11:42.821596+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGHttpSessionController] Action - setupSession
2018-06-27 16:11:42.823061+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGNetworkController] userDefaut verified: 1, curNetworkStatus: 2
2018-06-27 16:11:42.828924+0800 HBuilder[30981:6279747]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPFNetworkIsConnectingNotification (null)
2018-06-27 16:11:42.830602+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGSessionController] Action - connect
2018-06-27 16:11:42.832299+0800 HBuilder[30981:6279747]  | JIGUANG | D - [JIGUANGSessionController] Action - isSisOnProtect
2018-06-27 16:11:42.833487+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGSessionController] sis is not on protect
2018-06-27 16:11:42.834873+0800 HBuilder[30981:6279747]  | JIGUANG | D - [JIGUANGSessionController] Action - reset sis cache
2018-06-27 16:11:42.836082+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGAddressController] 开始Sis解析
2018-06-27 16:11:42.837484+0800 HBuilder[30981:6279747]  | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest
2018-06-27 16:11:42.848186+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGAddressController] get address :103.229.215.61 from host : s.jpush.cn
2018-06-27 16:11:42.849883+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort
2018-06-27 16:11:42.851225+0800 HBuilder[30981:6279747]  | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
2018-06-27 16:11:42.862370+0800 HBuilder[30981:6279803]  | JIGUANG | D - [JIGUANGUdpSocket] send udp data
2018-06-27 16:11:42.867395+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
2018-06-27 16:11:42.869160+0800 HBuilder[30981:6279747]  | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
2018-06-27 16:11:43.002075+0800 HBuilder[30981:6279739]  | JIGUANG | D - [JIGUANGAddressController] Action - parse
2018-06-27 16:11:43.037666+0800 HBuilder[30981:6279739] Metal GPU Frame Capture Enabled
2018-06-27 16:11:43.040266+0800 HBuilder[30981:6279739] Metal API Validation Enabled
2018-06-27 16:11:43.163074+0800 HBuilder[30981:6279803]  | JIGUANG | D - [JIGUANGAddressController] Action - parse ips address
2018-06-27 16:11:43.287122+0800 HBuilder[30981:6279777]  | JIGUANG | D - [JIGUANGAddressController] Action - parseOptionAddress
2018-06-27 16:11:43.455850+0800 HBuilder[30981:6279827]  | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
2018-06-27 16:11:43.461066+0800 HBuilder[30981:6279830]  | JIGUANG | D - [JIGUANGAddressController] receive sis result
2018-06-27 16:11:43.462013+0800 HBuilder[30981:6279827]  | JIGUANG | D - [JIGUANGSessionController] Action - connectTcp
2018-06-27 16:11:43.463050+0800 HBuilder[30981:6279827]  | JIGUANG | D - [JIGUANGSessionController] Action - connectTcpAddress:
2018-06-27 16:11:43.464150+0800 HBuilder[30981:6279827]  | JIGUANG | D - [JIGUANGSessionController] connectTcp:103.229.215.22:7003
2018-06-27 16:11:43.465131+0800 HBuilder[30981:6279827]  | JIGUANG | I - [JIGUANGSessionController] connecting with coreAddr 103.229.215.22,port 7003
2018-06-27 16:11:43.514057+0800 HBuilder[30981:6279829]  | JIGUANG | D - [JIGUANGTcpSocket] 连接主机成功
2018-06-27 16:11:43.515808+0800 HBuilder[30981:6279829]  | JIGUANG | D - [JIGUANGAddressController] Action - sisReport:port
2018-06-27 16:11:43.517630+0800 HBuilder[30981:6279829]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidSetupNotification (null)
2018-06-27 16:11:43.579259+0800 HBuilder[30981:6279829]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2018-06-27 16:11:43.632950+0800 HBuilder[30981:6279829]  | JIGUANG | I - [JIGUANGLogin] 
----- login result -----
uid:14330306080 
registrationID:1114a897928ed68f521
2018-06-27 16:11:43.634425+0800 HBuilder[30981:6279829]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2018-06-27 16:11:43.637067+0800 HBuilder[30981:6279830]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2018-06-27 16:11:43.637966+0800 HBuilder[30981:6279829]  | JIGUANG | D - [JIGUANGSessionController] Event - onLoginRespond
2018-06-27 16:11:43.645263+0800 HBuilder[30981:6279827]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidLoginNotification (null)
2018-06-27 16:11:43.904731+0800 HBuilder[30981:6279829] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2018-06-27 16:11:58.280347+0800 HBuilder[30981:6279829] [BoringSSL] Function boringssl_session_errorlog: line 2881 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
2018-06-27 16:12:00.117704+0800 HBuilder[30981:6279571] Status bar could not find cached time string image. Rendering in-process.
2018-06-27 16:13:00.023133+0800 HBuilder[30981:6279571] Status bar could not find cached time string image. Rendering in-process.
2018-06-27 16:13:32.563299+0800 HBuilder[30981:6280474]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2018-06-27 16:13:32.579187+0800 HBuilder[30981:6280380]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidReceiveMessageNotification {
    content = sdfsdfsdfsdffsdfsd;
    "content_type" = text;
    extras =     {
        newsid = 137;
        sort = 0;
        title = sdfsdfsdafsdaf;
        type = 0;
    };
    title = sdfsdfsdafsdaf;
}
2018-06-27 16:13:32.619594+0800 HBuilder[30981:6280380]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2018-06-27 16:13:48.164713+0800 HBuilder[30981:6280859]  | JIGUANG | D - [JIGUANGPageFlow] savePageFlowWithTime
2018-06-27 16:13:48.240778+0800 HBuilder[30981:6280474] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2018-06-27 16:13:48.250771+0800 HBuilder[30981:6280474] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2018-06-27 16:13:49.757418+0800 HBuilder[30981:6280875]  | JIGUANG | D - [JIGUANGPageFlow] resetCurrentPage
2018-06-27 16:13:49.884920+0800 HBuilder[30981:6280859]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2018-06-27 16:13:49.943042+0800 HBuilder[30981:6280859]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2018-06-27 16:13:49.945112+0800 HBuilder[30981:6280875]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2018-06-27 16:13:50.092422+0800 HBuilder[30981:6280859] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003
2018-06-27 16:13:51.728526+0800 HBuilder[30981:6280875]  | JIGUANG | D - [JIGUANGPageFlow] savePageFlowWithTime
objc[30981]: __weak variable at 0x102c6ef90 holds 0x102cb0002 instead of 0x102c7a070. This is probably incorrect use of objc_storeWeak() and objc_loadWeak(). Break on objc_weak_error to debug

(水柔) #9

这是打印出来的提示,看自定义消息是打印出来了,通知还是没有


#10

麻烦根据我查出来的结果去排查,iOS apns 证书涉及到 bundleID,证书,自定义消息是不涉及的!

你们这个registrationID配的 bundleID 是 jelw.daoluyun ,而你们官网的 bundleID不是这个!


(水柔) #11

好的,我再排查一下