What is the difference between development and production SSL certificates in iOS?

前端 未结 2 932
天涯浪人
天涯浪人 2021-02-05 14:35

This is maybe a strange question but it is really confusing me. Why do we have to create a development and a production SSL certificate for push notifications in iOS? What is th

2条回答
  •  北海茫月
    2021-02-05 15:30

    Apple uses different servers for sending push notifications to development versions and app store versions of the app. The development version is called Sandbox. The iOS maintains persistent connection to the its push servers depending on whether its development version or production version. Based on which certificate your app is signed (Dev or App Store/Ad Hoc) it will create a persistent connection to the respective push server. Since the two servers are different they will need different SSL certificates to establish a secure connection to the server.

    For more info refer:

    https://developer.apple.com/library/ios/technotes/tn2265/_index.html

提交回复
热议问题