【发布时间】:2016-11-07 12:13:11
【问题描述】:
发生了一件非常奇怪的事情。在我的 Mac 上,我可以 curl 到 Apple 的 http2 APNS api,并收到通知以及以下响应:
POST /3/device/{MYTOKEN} HTTP/1.1
Host: api.push.apple.com
User-Agent: curl/7.49.1
Accept: */*
apns-topic: com.domain.myapp
Content-Length: 40
Content-Type: application/x-www-form-urlencoded
Connection state changed (MAX_CONCURRENT_STREAMS updated)!
We are completely uploaded and fine
HTTP 1.0, assume close after body
HTTP/2 200
apns-id: 9DF86348-7133-8AF2-746D-EC1528769AD8
Closing connection 0
TLSv1.2 (OUT), TLS alert, Client hello (1):
如果我在希望从(Windows 服务器)发送通知的服务器上执行相同操作,我会得到完全相同的响应! - 但设备上没有通知??
知道这是怎么回事吗?
【问题讨论】:
标签: windows curl apple-push-notifications http2