我正在实现我的第一个带有推送通知的应用程序。我已经按照 Ray Wanderlich Tutorial 完成了所有调试工作
一切正常。
现在我要继续提交了,我想知道我必须在生产模式下为“实时”服务器插入哪些参数,而不是
gateway.sandbox.push.apple.com 2195
希望清楚
最佳答案
我认为端口是一样的,只是主机不同,它是gateway.push.apple.com
.
The binary interface of the production environment is available through gateway.push.apple.com, port 2195; the binary interface of the development environment is available through gateway.sandbox.push.apple.com, port 2195.
Source
关于Xcode 推送通知 : APNS server for production mode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9399356/