// This method only requires for iOS 8 , 9 public override void ReceivedLocalNotification(UIApplication application, UILocalNotification notification) { //Change UIApplicationState to suit different situations if (UIApplication.SharedApplication.ApplicationState != UIApplicationState.Active) { LocalNotificationService.NotifyNotificationTapped(notification); } }
public override void ReceivedLocalNotification(UIApplication application, UILocalNotification notification) { base.ReceivedLocalNotification(application, notification); if (UIApplication.SharedApplication.ApplicationState != UIApplicationState.Active) { LocalNotificationService.NotifyNotificationTapped(notification); } }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App()); LocalNotificationService.NotifyNotificationTapped(Intent); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; //AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; //TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException; base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); LocalNotificationService.NotificationIconId = Resource.Drawable.mosque; LocalNotificationService.NotifyNotificationTapped(Intent); LoadApplication(new App()); }
protected override void OnNewIntent(Intent intent) { LocalNotificationService.NotifyNotificationTapped(intent); base.OnNewIntent(intent); }