voip event to one PushKit token through APNs
(POST https://api[.sandbox].push.apple.com/3/device/{token},
apns-push-type: voip, topic <APNS_TOPIC>.voip).
Delivers a voip event to one PushKit token through APNs
(POST https://api[.sandbox].push.apple.com/3/device/{token},
apns-push-type: voip, topic <APNS_TOPIC>.voip).
The JSON body is the event's data object plus notifier_event_id
(and title/body from notification when given) — PushKit
payloads are entirely app-defined. Remember that on iOS 13+ every
PushKit push MUST be reported to CallKit by the app, so never use
this for anything but an incoming call.
ok.Unregistered) / 400 BadDeviceToken → {dead, _, _}.ExpiredProviderToken / InvalidProviderToken → provider
JWT invalidated and the send retried once.{failed, _, _}, token kept.| build_headers/3 | APNs request headers for a VoIP push. |
| build_payload/1 | The PushKit JSON payload. |
| send/2 |
build_headers(Event::notifier_event:event(), Topic::binary(), JWT::binary()) -> [{binary(), binary()}]
APNs request headers for a VoIP push.
build_payload(Event::notifier_event:event()) -> map()
The PushKit JSON payload.
send(Event::notifier_event:event(), Target::notifier_event:target()) -> notifier_dispatch:outcome()
Generated by EDoc