Push Notifications (iOS)

Use APNs to wake peers and trigger reconnection for critical events. Treat pushes as “wake hints”, not guaranteed delivery.

Recommended payload

{
  "aps": {
    "content-available": 1
  },
  "type": "litep2p.wake",
  "appId": "your-app-id",
  "reason": "message"
}

Flow

  1. App registers device token with your backend
  2. Backend targets the right device(s) on events
  3. On wake, the app reconnects and fetches pending work