-
Notifications
You must be signed in to change notification settings - Fork 2
register firebase hooks
github-actions[bot] edited this page Jun 2, 2026
·
1 revision
import org.koin.core.context.startKoin
import com.mobilebytelabs.kmptoolkit.observe.koin.observeKoinModule
import com.mobilebytelabs.kmptoolkit.observe.koin.FirebaseCrashlyticsAttributionHook
import com.mobilebytelabs.kmptoolkit.observe.koin.FirebaseAnalyticsHealthHook
fun bootKoin() {
startKoin {
modules(
observeKoinModule(
hooks = listOf(
FirebaseCrashlyticsAttributionHook(),
FirebaseAnalyticsHealthHook(),
),
),
)
}
}- The hooks run inside cmp-* libraries'
notifyInitpaths — they are no-ops until at least one cmp-* module's init path executes. -
iOS: Firebase SDK must already be initialized (
FirebaseApp.configure()) in yourAppDelegatebeforebootKoin()runs. -
Android: Firebase auto-initializes via
FirebaseInitProvider; no extra call needed. - JVM Desktop / wasmJs: Firebase Crashlytics is not available; the attribution hook is a no-op on those platforms.
- Module: cmp-observe-koin + cmp-observe
- See also: Issue a consumer anon-key for library events
- See also: Attribute a crash to a specific cmp-* library
** Partials**
App Intents
Bubble
Clipboard
Cookbook
- Clipboard Copy Text
- Clipboard Read Text
- Consumer Anon Key Setup
- Crashlytics Attribution Per Library
- Ifonline Block
- Index
- Index
- Index
- Index
- Open Url Compose
- Pick And Share Image
- React To Offline
- Register Firebase Hooks
- Share Pdf Android
- Share Text
- Wifi Vs Cellular
Firebase Analytics
In App Update
Intent Launcher
Inter App Comms
Modules
- Cmp App Intents
- Cmp App Intents Compose
- Cmp Bubble
- Cmp Clipboard
- Cmp Deep Link
- Cmp Firebase Analytics
- Cmp In App Update
- Cmp Intent Launcher
- Cmp Intent Launcher Compose
- Cmp Library
- Cmp Network Monitor
- Cmp Network Monitor Compose
- Cmp Observe
- Cmp Observe Koin
- Cmp Open Url
- Cmp Pdf Generator
- Cmp Product Tickets
- Cmp Remote Config
- Cmp Share
- Cmp Share Compose
- Cmp Toast
Network Monitor
Open Url
Pdf Generator
Remote Config
Share
Toast
User Tickets
General