/// <summary> /// We check for NotificationHasBeenTapped, and if so we segue into the messages module /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void HandleNotificationTapped(object sender, string e) { UIViewController topController = NavigationHelper.TopController(); if (OnboardingStatusHelper.Status != Enums.OnboardingStatus.CountriesOnboardingCompleted) { new IOSResetViews().ResetViews(); return; } if (topController is MessagePageViewController && e == iOSLocalNotificationsManager.NewMessageIdentifier) { return; } if (topController is InfectionStatusViewController && e == iOSLocalNotificationsManager.NewNotificationIdentifier) { return; } UINavigationController vc = e == iOSLocalNotificationsManager.NewMessageIdentifier ? MessagePageViewController.GetMessagePageControllerInNavigationController() : InfectionStatusViewController.GetInfectionSatusPageControllerInNavigationController(); topController.PresentViewController(vc, true, null); }
/// <summary> /// We check for NotificationHasBeenTapped, and if so we segue into the messages module /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void HandleNotificationTapped(object sender, EventArgs e) { UIViewController topController = NavigationHelper.TopController(); if (topController is MessagePageViewController) { return; } UINavigationController vc = MessagePageViewController.GetMessagePageControllerInNavigationController(); topController.PresentViewController(vc, true, null); }
/// <summary> /// We check for NotificationHasBeenTapped, and if so we segue into the messages module /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void HandleNotificationTapped(object sender, string e) { UIViewController topController = NavigationHelper.TopController(); if (topController is MessagePageViewController && e == iOSLocalNotificationsManager.NewMessageIdentifier) { return; } if (topController is InfectionStatusViewController && e == iOSLocalNotificationsManager.NewNotificationIdentifier) { return; } UINavigationController vc = e == iOSLocalNotificationsManager.NewMessageIdentifier ? MessagePageViewController.GetMessagePageControllerInNavigationController() : InfectionStatusViewController.GetInfectionSatusPageControllerInNavigationController(); topController.PresentViewController(vc, true, null); }
void OpenMessagesPage() { UINavigationController vc = MessagePageViewController.GetMessagePageControllerInNavigationController(); PresentViewController(vc, true, null); }