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
- App registers device token with your backend
- Backend targets the right device(s) on events
- On wake, the app reconnects and fetches pending work