We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd1f84c commit 7d213fdCopy full SHA for 7d213fd
sdk/src/main/java/cloud/mindbox/mobile_sdk/Mindbox.kt
@@ -89,6 +89,8 @@ object Mindbox {
89
90
private val mutex = Mutex()
91
92
+ private var diInitialized: Boolean = false
93
+
94
/**
95
* Allows you to specify additional components for message handling
96
* when calling the [handleRemoteMessage] function.
@@ -354,8 +356,11 @@ object Mindbox {
354
356
) {
355
357
LoggingExceptionHandler.runCatching {
358
initComponents(context, pushServices)
- startKoin {
- modules(appModule, dataModule)
359
+ if (!diInitialized) {
360
+ startKoin {
361
+ modules(appModule, dataModule)
362
+ }
363
+ diInitialized = true
364
}
365
initScope.launch {
366
val checkResult = checkConfig(configuration)
0 commit comments