Packages

Watch notification bridge for Raxol. Pushes glanceable summaries and accessibility announcements to Apple Watch (APNS) and Wear OS (FCM). Tap actions route back as events to the TEA app.

Current section

Files

Jump to
raxol_watch lib raxol watch supervisor.ex
Raw

lib/raxol/watch/supervisor.ex

defmodule Raxol.Watch.Supervisor do
@moduledoc """
Top-level supervisor for the watch notification bridge.
Starts the DeviceRegistry and Notifier.
"""
use Supervisor
def start_link(opts) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(opts) do
push_backend = Keyword.get(opts, :push_backend, Raxol.Watch.Push.Noop)
children = [
Raxol.Watch.DeviceRegistry,
{Raxol.Watch.Notifier, push_backend: push_backend}
]
Supervisor.init(children, strategy: :rest_for_one)
end
end