How do I implement an Apple APNS push notification service?

Asked

Viewed 811 times

5

I own a web service, and would like to create a Push Notification service for an app using Apple APNS without using the third-party service, as I could do this?

1 answer

8


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

  • At the beginning of the application you ask the "Apple servers" to register the device to accept notifications.
  • From this request you receive a token referring to your device.
  • Send this token to your server, which will store it.
  • Whenever your server thinks it needs to send notifications for devices, make a request to the Apple server with the token of the device.
  • Apple’s server tries to send the notification to device.

There are external services that facilitate and help in this process to avoid implementing a server for this process. See this example that explains the whole process and how to implement a server.

  • Thank you! I saw these procedures with a friend! But your information is good, and brings good content to those who are interested in doing this activity! rs

  • I’m glad I could help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.