private void clearLocalNotifications() { if (App.Binder.NotificationRegister.Registered) { AndroidNotificationServices.CancelAllLocalNotifications(); AndroidNotificationServices.ClearLocalNotifications(); } }
private void scheduleLocalNotification(string id, string title, string description, long offsetTicks, int badgeNumber) { if (App.Binder.NotificationRegister.Registered) { AndroidLocalNotification notification = new AndroidLocalNotification(); notification.fireDate = DateTime.Now + new TimeSpan(offsetTicks); notification.applicationIconBadgeNumber = badgeNumber; notification.hasAction = true; notification.alertBody = description; notification.alertAction = title; AndroidNotificationServices.ScheduleLocalNotification(notification); } }
private void clearRemoteNotifications() { AndroidNotificationServices.ClearRemoteNotifications(); }