https://github.com/node-apn/node-apn/blob/v2.1.1/lib/config.js#L5-L8
let EndpointAddress = {
production: "api.push.apple.com",
sandbox: "api.sandbox.push.apple.com"
};
$ ping api.push.apple.com
PING api.push-apple.com.akadns.net (17.188.154.155): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
^C
--- api.push-apple.com.akadns.net ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss
$ ping api.sandbox.push.apple.com
PING api.sandbox.push-apple.com.akadns.net (17.188.138.73): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
^C
--- api.sandbox.push-apple.com.akadns.net ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss
问题来了, 在天朝做 Apple Push 正确的姿势是怎样的, 给接口加代理 ?
1
current 2016-12-14 12:13:10 +08:00
APNS 服务器禁用 ping
|
2
GOOD21 2016-12-14 13:43:56 +08:00
阿里云香港节点
|
3
sallowdish 2016-12-14 17:40:38 +08:00
不看 doc 的標準姿勢。。 Apple APNS 只有兩個 interface , either binary or HTTP/2
|
4
hwwangwang 2016-12-14 17:55:42 +08:00
binary 有点蠢了, http2 才是王道。
|
5
magicdawn OP |
6
magicdawn OP |
7
lokig 2016-12-14 23:40:12 +08:00
http/2 可以正常用,不过如果不加代理的话,不太稳定就是了
|
8
magicdawn OP |
9
GOOD21 2016-12-15 11:29:41 +08:00 1
java http2
|
11
hwwangwang 2016-12-15 16:31:55 +08:00 1
|
12
lokig 2016-12-16 15:42:28 +08:00 1
|