Are there examples out there for using Koin with `...
# koin
c
Are there examples out there for using Koin with
FirebaseMessagingService
? I’m getting the following crash:
java.lang.IllegalStateException: KoinApplication has not been started
Copy code
class PushNotificationService : FirebaseMessagingService(), KoinComponent {
    val telemetry: Telemetry by inject()

    override fun onCreate() {
        super.onCreate()
        DependencyInjector.start(applicationContext)
        recordFunction("onCreate")
    }
This is what the start function looks like:
Copy code
fun start(context: Context) {
        startKoin {
            androidContext(context)
            modules(
                listOf(
                    apiModule,
                    databaseModule,
                    pushModule,
                    repositoryModule,
                    repositoryRetrievalModule,
                    rxModule
                )
            )
        }
    }