diff --git a/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs b/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs index 4545e8092..bed283c31 100644 --- a/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs +++ b/Covid19Radar/Covid19Radar.iOS/AppDelegate.cs @@ -121,6 +121,15 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary launchOpt // https://developer.apple.com/documentation/backgroundtasks/bgtaskscheduler/3180427-register ScheduleBackgroundTasks(); + try + { + LoggingPendingTaskRequests(); + } + catch (Exception ex) + { + _loggerService.Value.Exception("Failure get pending task requests", ex); + } + return base.FinishedLaunching(app, launchOptions); } @@ -166,7 +175,8 @@ private void LoggingPendingTaskRequests() _loggerService.Value.Info($"Pending task count: {pendingTaskRequests.Length}"); foreach (var pendingTaskRequest in pendingTaskRequests) { - _loggerService.Value.Info($"Identifier: {pendingTaskRequest.Identifier}, EarliestBeginDate: {pendingTaskRequest.EarliestBeginDate}"); + string identifier = pendingTaskRequest.Identifier.Split(".")?.Last(); + _loggerService.Value.Info($"Identifier: {identifier}, EarliestBeginDate: {pendingTaskRequest.EarliestBeginDate}"); } }); }