Xcode Push Notification: APNS server for productio

2019-06-18 10:46发布

问题:

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