parent
76761242f1
commit
681257bea7
|
@ -66,8 +66,6 @@ open class FenixApplication : Application() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
setupPush()
|
|
||||||
|
|
||||||
// Make sure the engine is initialized and ready to use.
|
// Make sure the engine is initialized and ready to use.
|
||||||
components.core.engine.warmUp()
|
components.core.engine.warmUp()
|
||||||
|
|
||||||
|
@ -100,12 +98,7 @@ open class FenixApplication : Application() {
|
||||||
components.analytics.metrics.start()
|
components.analytics.metrics.start()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sets the PushFeature as the singleton instance for push messages to go to.
|
setupPush()
|
||||||
// We need the push feature setup here to deliver messages in the case where the service
|
|
||||||
// starts up the app first.
|
|
||||||
if (FeatureFlags.sendTabEnabled && components.backgroundServices.pushConfig != null) {
|
|
||||||
PushProcessor.install(components.backgroundServices.push)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun registerRxExceptionHandling() {
|
private fun registerRxExceptionHandling() {
|
||||||
|
@ -184,10 +177,18 @@ open class FenixApplication : Application() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupPush() {
|
private fun setupPush() {
|
||||||
components
|
// Sets the PushFeature as the singleton instance for push messages to go to.
|
||||||
.backgroundServices
|
// We need the push feature setup here to deliver messages in the case where the service
|
||||||
.push
|
// starts up the app first.
|
||||||
.initialize()
|
if (FeatureFlags.sendTabEnabled && components.backgroundServices.pushConfig != null) {
|
||||||
|
val push = components.backgroundServices.push
|
||||||
|
|
||||||
|
// Install the AutoPush singleton to receive messages.
|
||||||
|
PushProcessor.install(push)
|
||||||
|
|
||||||
|
// Initialize the service. This could potentially be done in a coroutine in the future.
|
||||||
|
push.initialize()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupCrashReporting() {
|
private fun setupCrashReporting() {
|
||||||
|
|
Loading…
Reference in New Issue