diff --git a/Covid19Radar/Covid19Radar.Android/MainApplication.cs b/Covid19Radar/Covid19Radar.Android/MainApplication.cs index 0c357e822..016bfe599 100644 --- a/Covid19Radar/Covid19Radar.Android/MainApplication.cs +++ b/Covid19Radar/Covid19Radar.Android/MainApplication.cs @@ -93,7 +93,7 @@ private void ScheduleBackgroundTasks() } catch (Exception exception) { - _loggerService.Value.Exception("failed to Scheduling ExposureDetectionBackgroundService", exception); + _loggerService.Value.Exception("Failed to schedule ExposureDetectionBackgroundService", exception); } try { @@ -101,7 +101,7 @@ private void ScheduleBackgroundTasks() } catch (Exception exception) { - _loggerService.Value.Exception("failed to Scheduling EventLogSubmissionBackgroundService", exception); + _loggerService.Value.Exception("Failed to schedule EventLogSubmissionBackgroundService", exception); } } diff --git a/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs b/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs index c4fabdbb5..6c491c375 100644 --- a/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs +++ b/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs @@ -125,7 +125,7 @@ private void ScheduleBackgroundTask() } catch (Exception exception) { - _loggerService.Value.Exception("failed to Scheduling", exception); + _loggerService.Value.Exception("Failed to schedule ExposureDetectionBackgroundService", exception); } try { @@ -133,7 +133,7 @@ private void ScheduleBackgroundTask() } catch (Exception exception) { - _loggerService.Value.Exception("failed to Scheduling EventLogSubmissionBackgroundService", exception); + _loggerService.Value.Exception("Failed to schedule EventLogSubmissionBackgroundService", exception); } } diff --git a/Covid19Radar/Covid19Radar.iOS/Services/EventLogSubmissionBackgroundService.cs b/Covid19Radar/Covid19Radar.iOS/Services/EventLogSubmissionBackgroundService.cs index fb45d3428..eb6b65720 100644 --- a/Covid19Radar/Covid19Radar.iOS/Services/EventLogSubmissionBackgroundService.cs +++ b/Covid19Radar/Covid19Radar.iOS/Services/EventLogSubmissionBackgroundService.cs @@ -34,6 +34,8 @@ ILoggerService loggerService public override void Schedule() { + _loggerService.StartMethod(); + _ = BGTaskScheduler.Shared.Register(IDENTIFIER, null, task => { HandleSendLogAsync((BGAppRefreshTask)task);