public void SendLocalPushNotification()
        {
            DateTime when    = DateTime.Now.AddSeconds(3);
            var      title   = "Title";
            var      message = "Awesome message";
            var      sound   = true;
            var      vibrate = true;
            var      lights  = true;
            var      bigIcon = "app_icon";

            AGLocalNotifications.ShowNotification(NotificationId, when, title, message, Color.red,
                                                  sound, vibrate, lights, bigIcon);
        }
        public void SendLocalPushNotificationRepeating()
        {
            DateTime when           = DateTime.Now.AddSeconds(3); // when to show the first one
            var      intervalMillis = 10 * 1000L;                 // interval between subsequent
            var      title          = "Title";
            var      message        = "Awesome message";
            var      sound          = true;
            var      vibrate        = true;
            var      lights         = true;
            var      bigIcon        = "app_icon";

            AGLocalNotifications.ShowNotificationRepeating(NotificationId, when, intervalMillis, title, message, Color.red,
                                                           sound, vibrate, lights, bigIcon);
        }
 public void SendLocalPushNotification()
 {
     AGLocalNotifications.ShowNotification("Notification Title", "Notification Text", DateTime.Now);
 }
Exemple #4
0
        public void CancelNotification()
        {
#pragma warning disable 0618
            AGLocalNotifications.CancelNotification(NotificationId);
#pragma warning restore 0618
        }
 public void CancelNotification()
 {
     AGLocalNotifications.CancelNotification(NotificationId);
 }