Example #1
0
        protected bool RegisterMainLauncher(UIViewController mainViewController, NSDictionary launchOptions)
        {
            PushNotificationData notification = null;

            if (!AppKitApnMessagingService.HandleStartUpNotification(launchOptions, out notification))
            {
                PushNotificationManager.Current.StorePendingNotification(notification);
            }

            this.Window = new UIWindow(UIScreen.MainScreen.Bounds);
            this.Window.RootViewController = mainViewController;
            this.Window.MakeKeyAndVisible();

            return(true);
        }
Example #2
0
        public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo)
        {
            PushNotificationData notification = AppKitApnMessagingService.GetNotificationData(userInfo);

            ReceivedRemoteNotification(notification);
        }