How to implement an Apple APNS push notification service?

5

I have a web service , and I would like to create a Push Notification service for an app using Apple's APNS, without using the third party service, how could I do that?

    
asked by anonymous 06.11.2014 / 15:31

1 answer

8

You basically have to implement this system on your server. The notification process is done in the following steps:

  • At the beginning of the application you ask "Apple servers" to register the device to accept notifications.
  • From this request you receive a token related to the device itself.
  • Send this token to your server, which will store it.
  • Whenever your server thinks you need to send notifications for the devices, it requests the Apple server with the token the device.
  • The Apple server tries to send the notification to the device.

There are external services that facilitate and assist in this process of avoiding implementing a server for this process. See this example that explains the whole process and how to deploy a server.

    
06.11.2014 / 17:49