The Production Server and Moving Forward

When you deploy an application to the App Store, you need to use a different SSL certificate and talk to a different notification server. The process for generating that certificate is the same; in the developer portal, just configure the Production section of the App ID. In your server, you must point the connection to another instance of the notification server. The hostname of this server is gateway.push.apple.com, and the port is still 2195.

Also, CocoaServer isn’t exactly a production server: it isn’t optimized to handle many service requests at once.

Finally, all of the networking APIs and classes used in CocoaServer work in iOS as well. An iOS application can get instances of NSInputStream and ...

Get iOS Programming: The Big Nerd Ranch Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.