diff --git a/Linphone/Utils/Log.swift b/Linphone/Utils/Log.swift index 28257cf37..38b08ae4f 100644 --- a/Linphone/Utils/Log.swift +++ b/Linphone/Utils/Log.swift @@ -92,7 +92,11 @@ class Log: LoggingServiceDelegate { NSLog(log) } #if USE_CRASHLYTICS - Crashlytics.crashlytics().log(log) + if FirebaseApp.app() != nil { + DispatchQueue.global(qos: .background).async { + Crashlytics.crashlytics().log(log) + } + } #endif }