iOS10,deviceToken变化的问题


#52

你推送的是开发环境,请后台修改apns_production为true


#54

刚刚这条消息没改!


(zongzi) #55

后台现在已经修改apns_production为true,但是还是收不到,别名:200036tsk19v,message ID:5803848909,急急急


#56

这里报错了说明你的别名没有设备设置成功
如果你说设置了,请提供客户端的日志,完整的


(zongzi) #57

我打生产环境的包,怎么查看日志啊?看不了,有什么办法没?


#58

(zongzi) #59

这次找到了日志,但是日志太多了,感觉一些事无用的日志,想找到有用日志有点难,有没什么设置日志级别,只显示一些有用日志?


#60

筛选jiguang、jpush


(zongzi) #61

我在AppDelegate界面注册了通知:


但是,这几个都没成功?帮忙查下什么原因吧?


(zongzi) #62
<Info>: {"msg":"#Stream notifying", "client":"<CLIntersiloProxy: peer silo:CLFilteredLocationControllerSilo, peer tag:4322344112>", "notification":"5"}
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: {"msg":"#Stream Received notification", "notification":"0"}
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: {"msg":"#Stream Source now available", "source":"0"}
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: {"msg":"#Stream Starting location for source", "source":"0", "notification":"0", "include motion":"0"}
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: {"msg":"#Stream notifying", "client":"<CLIntersiloProxy: peer silo:CLFilteredLocationControllerSilo, peer tag:4322344112>", "notification":"4"}
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: {"msg":"#Stream notifying", "client":"<CLIntersiloProxy: peer silo:CLFilteredLocationControllerSilo, peer tag:4322344112>", "notification":"5"}
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: {"msg":"#Stream notifying location", "client":"<CLIntersiloProxy: peer silo:CLFilteredLocationControllerSilo, peer tag:4322344112>", "accuracy":"10.000000", "type":"GPS", "origin device":"1"}
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/NavdLocationBundleiOS.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/Traffic.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/Routine.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/CompassCalibration.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/NavdLocationBundleiOS.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/Traffic.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/Routine.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/CompassCalibration.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client </System/Library/LocationBundles/NavdLocationBundleiOS.bundle>
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 locationd[4883] <Notice>: Sending location to client <com.weizuche076.WeRentCar>
May 15 17:36:54 iPhone-7 navd(CoreLocation)[168] <Notice>: delivering locations to client's delegate
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: ClxClient, location, <private>, type, <private>, accuracy, <private>
May 15 17:36:54 iPhone-7 navd(CoreLocation)[168] <Info>: New location is identical to old location; discarding
May 15 17:36:54 iPhone-7 navd(CoreLocation)[168] <Info>: New location is identical to old location; discarding
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: received location, <private>
May 15 17:36:54 iPhone-7 WeRentCar(CoreLocation)[5260] <Notice>: delivering locations to client's delegate
May 15 17:36:54 iPhone-7 routined(libcoreroutine.dylib)[31] <Info>: received location, <private>
May 15 17:36:54 iPhone-7 CommCenter(libATCommandStudioDynamic.dylib)[77] <Notice>: QMI: Svc=0x02(DMS) Req MsgId=0x002f Bin=[<private>]
May 15 17:36:54 iPhone-7 CommCenter(libATCommandStudioDynamic.dylib)[77] <Notice>: QMI: Svc=0x02(DMS) Resp MsgId=0x002f Bin=[<private>]
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: entry
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: entry
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: txBufferLength=7 rxBufferLength=23
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: Wrote:     7B | 0x80 0x10 0x00 0x07 0x00 0x00 0x00
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>:  Read:    23B | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x80 0x20 0x00 0x10 0x00 0x00 0x00 0x11 0x01 0x21 0x00 0x04 0x23 0x04 0x12 0x00
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: Status={0x80, 0x20, 00, 0x10, 00, 00, 00, 0x11, 0x1, 0x21, 00, 0x4, 0x23, 0x4, 0x12, 00}
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: exit, err=0x0
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: mask=0x3F, bad=false
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: exit
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: entry
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: exit
May 15 17:36:54 iPhone-7 locationd[4883] <Info>: SPU bias estimate inserted: bias,<private>,<private>,<private>,variance,<private>,<private>,<private>,temperature,<private>
May 15 17:36:54 iPhone-7 kernel(AppleBiometricSensor)[0] <Debug>: entry

这些日志是你们极光发送的吗?


#63

极光的日志带有JPush、jiguang的标识


(zongzi) #64

帮忙查看下为什么APP没收到推送?
registId = 141fe1da9e9a64c33e3
iAlias = 10002dxwb7x7


#65

请提供你推送的消息的msgid


(zongzi) #66

7944557508


#67

消息是成功的,请检查通知栏提醒设置


(zongzi) #68

通知栏没问题,总共两条消息,只是收到一条,另一条真没收到,从图上看确实全收到,但是下面那一条真没收到


#69

如果是18:30的没收到,18:31的收到了,说明Apple将这条消息丢了,在断网、网络波动等导致App与Apple服务器断开处于离线状态时,Apple只保留1条消息

建议通知与自定义消息同时推送,自定义消息前台接收不展示,保留5条离线消息,走极光服务器


(zongzi) #70

networkDidLoginNotification:登录成功,同样也获取到了registrationID,但是为什么还有下面的提示呢?

2017-05-15 19:59:09.099052 WeRentCar[5411:2563389] [] nw_connection_write_close 6 Connection is not ready, sending error callback
2017-05-15 19:59:09.099206 WeRentCar[5411:2563389] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [57] Socket is not connected

#71

连接是会因网络波动而断开重试的。


(zongzi) #72

我注册推送的时候,type选的是JPAuthorizationOptionAlert | JPAuthorizationOptionSound,怎么还会出现icon上的角标呢?