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); }
public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo) { PushNotificationData notification = AppKitApnMessagingService.GetNotificationData(userInfo); ReceivedRemoteNotification(notification); }