diff --git a/msgNotification/Utils.swift b/msgNotification/Utils.swift index aedb27fd7..90da58b3e 100644 --- a/msgNotification/Utils.swift +++ b/msgNotification/Utils.swift @@ -18,6 +18,9 @@ */ import linphonesw +#if USE_CRASHLYTHICS +import Firebase +#endif enum LinphoneError: Error { case timeout @@ -63,6 +66,9 @@ class LinphoneLoggingServiceManager: LoggingServiceDelegate { level = "unknown" } +#if USE_CRASHLYTHICS + Crashlytics.crashlytics().log("\(level) [\(domain)] \(message)\n") +#endif NSLog("\(level) [\(domain)] \(message)\n") } }