Ejemplo n.º 1
0
 // 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);
     }
 }
Ejemplo n.º 2
0
        public override void ReceivedLocalNotification(UIApplication application, UILocalNotification notification)
        {
            base.ReceivedLocalNotification(application, notification);

            if (UIApplication.SharedApplication.ApplicationState != UIApplicationState.Active)
            {
                LocalNotificationService.NotifyNotificationTapped(notification);
            }
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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());
        }
Ejemplo n.º 5
0
 protected override void OnNewIntent(Intent intent)
 {
     LocalNotificationService.NotifyNotificationTapped(intent);
     base.OnNewIntent(intent);
 }