推送通知:api.development.push.apple.com与api.sandbox.push.apple.com

时间:2019-03-07 18:57:22

标签: ios apple-push-notifications

为什么要在开发网络上发送推送,为什么经常遇到对这两个API的引用:

api.development.push.apple.com:443 api.sandbox.push.apple.com:443

Apple文档说它们之间是否有任何区别,请使用api.sandbox.push.apple.com:443(https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns

但是,我看到了许多使用api.development.push.apple.com:443的示例。 为什么?

1 个答案:

答案 0 :(得分:0)

看起来您可以同时使用。

https://api.development.push.apple.com/https://api.sandbox.push.apple.com/拥有一个带有SAN的HTTPS证书(于2019年发布):

  • DNS-name = api.development.push.apple.com
  • DNS-name = api.sandbox.push.apple.com
  • DNS名称= api.qa1.push.apple.com
  • DNS名称= api.qa2.push.apple.com

但是此证书的CN是api.development.push.apple.com)