/// <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);
        }
Example #2
0
        public static void GoToResultPage(UIViewController parent, bool fromOnboarding)
        {
            UIViewController vc = InfectionStatusViewController.Create(fromOnboarding);

            UINavigationController navigationController = new UINavigationController(vc);

            navigationController.SetNavigationBarHidden(true, false);
            navigationController.ModalPresentationStyle = UIModalPresentationStyle.FullScreen;
            parent.PresentViewController(navigationController, 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);
        }