Skip to content

Add broadcast push send support - #248

Closed
kylebrowning wants to merge 1 commit into
feat/test-server-parityfrom
feat/broadcast-send
Closed

Add broadcast push send support#248
kylebrowning wants to merge 1 commit into
feat/test-server-parityfrom
feat/broadcast-send

Conversation

@kylebrowning

Copy link
Copy Markdown
Owner

Stacked on #246; will be retargeted to main once it merges.

The library could manage broadcast channels but had no way to publish to one. Adds POST /4/broadcasts/apps/<bundleID> support per Apple's docs:

  • APNSBroadcastSendRequest/APNSBroadcastSendResponse in APNSCore with the required headers (apns-channel-id, apns-push-type: liveactivity, apns-expiration, apns-priority, optional apns-request-id).
  • sendBroadcast(_:) on both clients plus a sendBroadcastLiveActivityNotification(...) convenience; APNSEnvironment.broadcastSendURL(bundleID:).
  • Test-server endpoint with Apple's documented validation chain (MissingChannelIdMissingPushTypeInvalidPushTypeBadExpirationDateBadPriorityChannelNotRegisteredPayloadEmpty → 413 at 5 KB) and a broadcast-send log for assertions.
  • Drift fix: APNSBroadcastClient now supports a proxy like APNSClient does.

@kylebrowning
kylebrowning deleted the branch feat/test-server-parity July 14, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant