Skip to content

Instantly share code, notes, and snippets.

@wrburgess
Created August 7, 2012 16:09
Show Gist options
  • Save wrburgess/3286782 to your computer and use it in GitHub Desktop.
Save wrburgess/3286782 to your computer and use it in GitHub Desktop.
Apple Push Notifications

Apple Push Notification Service and Rails 3.0

Key Points

  • Push notifications were introduced in iOS 3.0 and in OS X version 10.7.
  • APNs has a feedback service that maintains a per-application list of devices for which there were failed-delivery attempts. The provider should connect with the feedback service to see what devices have persistent failures to refrain from sending push notifications to them.
  • A notification is a short message consisting of two major pieces of data: the device token and the payload

Provider Responsibilities

As a provider, you are responsible for the following aspects of push notifications:

  • Compose the payload
  • Regularly connect with Feedback Service to poll for failed-delivery attempts

Refs

Apple Dev Site

Links

Gems

Plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment