我获取不到registrationID


(Song) #1

我详细叙述下我的问题
1网络是使用公司的网络
2使用vpn链接了公司内网
3工程集成正常

在使用4g网络的情况下是可以获取到registrationID
但是使用公司WiFi网络再使用vpn链接公司内网的时候就无法获取到registrationID

关闭打印会输出:
Missing server connection for kCTConnectionInvalidatedNotification

开启打印输出:

| JIGUANG | E - [JIGUANGAddressController] not receive sis result just now
 | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
 | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort
 | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
 | JIGUANG | D - [JIGUANGUdpSocket] send udp data
 | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
 | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
 | JIGUANG | E - [JIGUANGAddressController] not receive sis result just now
 | JIGUANG | D - [JIGUANGAddressController] not receive sis result
  | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toPort
 | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
 | JIGUANG | D - [JIGUANGUdpSocket] send udp data
 | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
 | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
 | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toPort
 | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
  | JIGUANG | D - [JIGUANGUdpSocket] send udp data
  | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
  | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
 | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toPort
  | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
  | JIGUANG | D - [JIGUANGUdpSocket] send udp data
 | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
 | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
 | JIGUANG | D - [JIGUANGSessionController] Action - connect
| JIGUANG | D - [JIGUANGSessionController] Action - isSisOnProtect
| JIGUANG | D - [JIGUANGSessionController] sis is not on protect
| JIGUANG | D - [JIGUANGSessionController] Action - reset sis cache
| JIGUANG | D - [JIGUANGAddressController] 开始Sis解析
 | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest
| JIGUANG | D - [JIGUANGAddressController] get address :103.229.215.60 from host : s.jpush.cn
| JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort
| JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
| JIGUANG | D - [JIGUANGUdpSocket] send udp data
 | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
| JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
| JIGUANG | E - [JIGUANGAddressController] not receive sis result just now
 | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
 | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort
 | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
| JIGUANG | D - [JIGUANGUdpSocket] send udp data
| JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
 | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
 | JIGUANG | E - [JIGUANGAddressController] not receive sis result just now
 | JIGUANG | D - [JIGUANGAddressController] not receive sis result
 | JIGUANG | D - [JIGUANGAddressController] get address :117.121.49.101 from host : sis.jpush.io
 | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort
  | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
 | JIGUANG | D - [JIGUANGUdpSocket] send udp data
| JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
| JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
| JIGUANG | E - [JIGUANGAddressController] not receive sis result just now
| JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
 | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort
 | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
| JIGUANG | D - [JIGUANGUdpSocket] send udp data
 | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
| JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
| JIGUANG | E - [JIGUANGAddressController] not receive sis result just now
 | JIGUANG | D - [JIGUANGAddressController] not receive sis result
 | JIGUANG | D - [JIGUANGAddressController] get address :123.196.118.24 from host : easytomessage.com

我想得到解决办法 别直接粘贴一个帖子链接 这个问题已经折腾了很多天了 希望有个解决办法
感谢 我现在无法不用公司内网去接收推送 所以官方的请给我一个解决方案


#2

换成 4 G网去得到吗,公司内网很可能是有限制的。


(Song) #3

4g网络可以 公司内网不可以 打印输出就是上面帖子写的那样


(Song) #4

你给我发的这个链接是让我付费还是让我改hosts 还是什么意思?


#6

公司内网有限制,请根据链接中的说明处理,无其他方法,iOS不仅需要与极光服务器连接,,还要与 Apple 服务器连接。


(Song) #7

还有一个问题就是 我这边两个手机 网络状况是一样的 代码也是一样的 然后有一个手机可以获取打registrationID 另外一个就获取不到registrationID


#8

网络状态完全一致,提供完整的客户端日志信息,下午上班后分析