Xcode 推送通知:用于生产模式的 APNS 服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9399356/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode Push Notification: APNS server for production mode
提问by Miwi
I'm realizing my first app with push notification. I've done all the debugging following the Ray Wanderlich Tutorialand everything works.
我正在实现我的第一个带有推送通知的应用程序。我已经按照Ray Wanderlich 教程完成了所有调试 ,一切正常。
Now that I'm about to proceed with the submission I would like to know what parameters I have to insert for the "live" server in production mode instead of
现在我要继续提交了,我想知道我必须在生产模式下为“实时”服务器插入哪些参数,而不是
gateway.sandbox.push.apple.com 2195
Hope to be clear
希望清楚
回答by Peter
I think the port is the same, only the host is different, it's gateway.push.apple.com
.
我认为端口是相同的,只是主机不同,它是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.
生产环境的二进制接口可以通过gateway.push.apple.com,2195端口获得;开发环境的二进制接口可以通过gateway.sandbox.push.apple.com,2195端口获得。