talira

Apple Push Notification service

Apple's service for sending remote notifications to apps on Apple devices

service

Apple Push Notification service (APNs) is the service every app on Apple's platforms uses to receive remote notifications. An app registers with APNs at launch and gets a device token, which it sends to the developer's server; the server then sends a POST request with a JSON payload to APNs over HTTP/2 and TLS 1.2 or later, authenticated with a token or a provider certificate, and APNs delivers it to the device. It's a best-effort service: notifications for an offline device are stored for up to 30 days, one per app. Broadcast push notifications update Live Activities for every subscribed user with a single request, and the Push Notifications Console in the browser sends test notifications and shows delivery metrics.

Problems it solves

  • send a push notification from my server to my iPhone app's users
  • show an alert, play a sound or update the badge on my iOS app's icon when something happens on the backend
  • wake my app in the background with a silent notification so it can fetch new data
  • update a Live Activity on every subscribed user's lock screen with a single request
  • send push notifications to my Mac, Apple Watch, Apple TV or Vision Pro app
  • test that push notifications reach my app without building a sending server first
  • see whether the push notifications my server sends to iOS devices are actually being delivered

Features

  • HTTP/2 API with JSON payloads, over TLS 1.2 or later
  • token-based or certificate-based authentication
  • development and production servers
  • port 2197 as an alternative to 443
  • stores notifications for offline devices for up to 30 days
  • broadcast push notifications for Live Activities
  • Push Notifications Console for test sends and delivery metrics

Limitations

  • Doesn't guarantee delivery or order: APNs is best-effort, may reorder notifications and stores only one undelivered notification per app per device1
  • Doesn't accept payloads over 4 KB: VoIP notifications may be up to 5 KB2

Capabilities

Has an APIplan not known

Alternatives

The same job

These do what Apple Push Notification service does.

  1. ntfy Send push notifications to your phone or desktop using PUT/POST
  2. Firebase Cloud Messaging Free cross-platform push notifications and data messages for Android, iOS and the web
  3. Pushover Simple notifications for Android, iPhone, iPad and Desktop
  4. OneSignal Autonomous lifecycle marketing to onboard, engage, and retain users
  5. Pushwoosh Customer engagement platform for mobile and web push, in-app, email and SMS
  6. Airship Mobile-first customer engagement: push, in-app, SMS, email and wallet passes

Compare Apple Push Notification service with the top 3