public void CreateProgressBarNotification()
        {
            _notificationId++;

            var builder = CreateBaseNotificationBuilder()
                          .SetContentTitle("Progress Bar Notification, id:" + _notificationId)
                          .SetContentText("So progressive :)");

            AGNotificationManager.Notify(_notificationId, builder.Build());

            StartCoroutine(UpdateProgressBar(builder));
        }
        public void CreateScheduledNotification()
        {
            _notificationId++;

            var notification = CreateBaseNotificationBuilder()
                               .SetContentTitle("Scheduled one!")
                               .SetContentText("Id: " + _notificationId)
                               .Build();
            var time = DateTime.Now;

            time = time.AddSeconds(5);

            Debug.Log("Scheduled time is " + time + " with id: " + _notificationId);
            AGNotificationManager.Notify(_notificationId, notification, time);
        }
        IEnumerator UpdateProgressBar(Notification.Builder builder)
        {
            var         currentProgress = 0f;
            const float durationTime    = 5f;
            const int   maxProgress     = 100;

            while (currentProgress < durationTime)
            {
                var progress = Mathf.CeilToInt(currentProgress / 5f * maxProgress);
                currentProgress += Time.deltaTime;
                builder.SetProgress(maxProgress, progress, false);
                AGNotificationManager.Notify(_notificationId, builder.Build());
                yield return(null);
            }

            AGNotificationManager.Notify(_notificationId, builder.Build());
        }
 void Notify(Notification.Builder builder)
 {
     _notificationId++;
     AGNotificationManager.Notify(_notificationId, builder.Build());
 }