WalletPasses.Apple.Push (wallet_passes v0.5.0)

Copy Markdown View Source

Sends silent APNs push notifications to Apple Wallet devices.

Uses HTTP/2 with client certificate authentication to notify devices that a pass has been updated.

Summary

Functions

Notifies all registered devices for an Apple pass by serial number.

Sends silent push notifications to a list of APNs push tokens.

Functions

notify(apple_pass)

Notifies all registered devices for an Apple pass by serial number.

Looks up push tokens via Schema and sends notifications. Returns {:ok, {successes, errors}}.

notify_devices(push_tokens)

Sends silent push notifications to a list of APNs push tokens.

Returns {:ok, {successes, errors}} or {:error, reason}.

Emits [:wallet_passes, :apple, :push, :start|:stop] telemetry events. Stop measurements include duration, success_count, and error_count.