/// <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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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);
        }
示例#4
0
        void OpenMessagesPage()
        {
            UINavigationController vc = MessagePageViewController.GetMessagePageControllerInNavigationController();

            PresentViewController(vc, true, null);
        }