Messagingapnsfcmmobile pushweb push

Push notification

Definition

A push notification is sent by a backend to a platform push service (Apple Push Notification service, Firebase Cloud Messaging, or Web Push), which delivers it to the device identified by a device token.

In practice

Phones cannot keep a socket open to every app, so the operating system holds one connection to the platform service and wakes apps when a notification arrives. Chat apps use push to reach offline users, who then open the app and sync missed messages by sequence number; the push itself is only a nudge.

Delivery is best effort: the platform may delay, collapse or drop messages, and tokens expire when apps are uninstalled, so remove tokens the provider rejects. Senders should run per-channel queues with retries, rate limits and idempotency keys, and never put sensitive content in the payload, which passes through third parties.

Example

Bob is offline when Alice messages him; the chat service sends an FCM notification with conversation_id only, and Bob's app fetches messages after sequence 1,204 when he taps it.