private async Task HandleAppOpenAsync(AppOpenEvent openEvent) { if (false == await _registrationController.GetIsRegisteredAsync()) { return; } var notification = new AppLaunchClientNotification { LaunchTimeUtc = openEvent.Timestamp, OperatingSystem = _environmentInformation.OperatingSystem, SessionTrigger = openEvent.WasLaunchedFromNotification ? LaunchReason.Notification : LaunchReason.None }; _persistentStorage.Set(START_TIME_KEY, notification.LaunchTimeUtc.ToString("O")); _persistentStorage.Set(SESSION_TRIGGER, notification.SessionTrigger.ToString()); await _notificationManager.SendClientNotificationsAsync(notification); }
private void HandleAppOpen(AppOpenEvent appOpen) { CleanupExpiredDataAsync().ExecuteInBackground(); }
public void HandleAppOpen(AppOpenEvent openEvent) { HandleAppOpenAsync(openEvent).ExecuteInBackground(); }