initChannels

open override fun initChannels()(source)

Creates all necessary notification channels on devices running Android O or newer. This should be called once when the service is created.

Deliberately blocking (Main-thread, one-time cost): the orchestrator posts the foreground-service notification synchronously right after this returns, so channels must exist before then — do not lazy-gate this into the suspend notify paths. Blocking getString is safe here only because Main is not a Dispatchers.Default worker.