问题
I'm realizing my first app with push notification. I've done all the debugging following the Ray Wanderlich Tutorial and everything works.
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
回答1:
I think the port is the same, only the host is different, it's 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
来源:https://stackoverflow.com/questions/9399356/xcode-push-notification-apns-server-for-production-mode