Esempio n. 1
0
        private void OnClickScheduled(object sender, System.EventArgs e)
        {
            string Tag = "Scheduled";

            try
            {
                var notification = new Bundle();
                FillCommonParts(notification);
                FillBundle(notification);
                notification.PutDouble(NotificationConstants.FireDate, 10000L);       //Time when a notification message will be pushed.
                NotificationController.LocalNotificationSchedule(this, notification); //Schedules a local notification to be pushed at a future time.

                log.Info(Tag, "Success");
            }
            catch (ApiException exception)
            {
                log.Error(Tag, "Error/Exception: " + exception);
            }
        }
 public void LocalNotificationSchedule(XamarinFormsPushDemo.HMSPush.Model.LocalNotification notification)
 {
     NotificationController.LocalNotificationSchedule(Application.Context, NotificationToBundle(notification));
 }