WalletPasses.EventHandler.Dispatch (wallet_passes v0.8.1)

Copy Markdown View Source

Internal dispatcher for WalletPasses.EventHandler callbacks.

Fans pass lifecycle events out to the configured handler module under WalletPasses.EventHandler.TaskSupervisor so a slow or crashing handler cannot extend Apple/Google response times. Exceptions are captured, logged, and reported via [:wallet_passes, :event_handler, :dispatch, :stop] with status: :error. See Event Handling & Wallet Presence.

Summary

Functions

dispatch(event, serial_number, platform, meta \\ %{})

@spec dispatch(
  :pass_added | :pass_removed | :pass_fetched,
  String.t(),
  :apple | :google,
  map()
) :: :ok