
The SSL certificate required for these connections is obtained from your developer account. Send request to the above addresses via secured TLS or SSL channel.

Data is a key value pairs of multiple informations like device token, expiration, topic, priority. The binary interface employs a plain TCP socket for binary content that is streaming in nature.Īs you can see in the package instruction above, we need specify frame length and data. The binary interface of the production environment is available through, port 2195 and development environment .com, port 2195. In short, binary provider API is just a specification about which address and which format to send push request to Apple push server. Push notification feature was first introduced by Apple in 2009 via a fairly complex binary provider API You can think of it as the server your device always has connection with, so you're ready for any server push messages from it. Here’s also a common abbreviations you need to learn: APNs it is short for Apple Push Notification service.

Since a push notification failure can be because of many reasons: it could be due to some failed logic in your backend, or that the push certificate has expired, or that you have sent the wrong device token, or that user has turned off push permission in Settings app, or that the push has been delayed.

If you send push notifications with the legacy binary protocol, we strongly recommend upgrading to the APNs provider API.įrom the the iOS client point of view, you pretty much don’t need to care about provider API, as you only need to register for push notification capability and send the device token to your backend, and it’s the backend’s job to send push request to Apple notifications server.īut it’s good to know the underlying mechanism, especially when you want to troubleshoot push notification. The HTTP/2-based Apple Push Notification service (APNs) provider API lets you take advantage of great features, such as authentication with a JSON Web Token, improved error messaging, and per-notification feedback. How to test push notifications in simulator and production iOS appsĪfter has recently reminded about his updating APNs provider API which makes me realised a lot has changed about push notifications, both in terms of client and provider approach.
