public void CreateRepeatingNotification()
        {
            _notificationId++;

            var notification = CreateBaseNotificationBuilder()
                               .SetContentTitle("Repeating one!")
                               .SetContentText("I will repeat!")
                               .Build();

            var time = DateTime.Now.AddSeconds(5);

            Debug.Log("NotificationsTest: scheduled time is " + time);
            // NOTE: as of API 19, all repeating alarms are inexact. If your
            // application needs precise delivery times then it must use one-time
            //	exact alarms, rescheduling each time.
            const long intervalMillis = 10 * 1000L;             // every 10 seconds

            AGNotificationManager.NotifyRepeating(null, _notificationId, notification, intervalMillis, time);
        }
        public void CreateDifferentNotifications()
        {
            //Basic notification
            var builder = CreateBaseNotificationBuilder().SetContentTitle("Very basic one");

            Notify(builder);

            //Notification with large icon
            var iconTexture = _goodiesSprite.texture;

            builder = CreateBaseNotificationBuilder()
                      .SetContentTitle("With large icon!")
                      .SetBadgeIconType(Notification.BadgeIcon.Large)
                      .SetLargeIcon(iconTexture)
                      .SetCategory(Notification.CategoryMessage);
            Notify(builder);

            //Notification with number (shown as badge on app icon)
            builder = CreateBaseNotificationBuilder()
                      .SetContentTitle("With number")
                      .SetNumber(20);
            Notify(builder);

            //Chronometer notification
            builder = CreateBaseNotificationBuilder()
                      .SetContentTitle("UsesChronometer")
                      .SetUsesChronometer(true);
            Notify(builder);

            //Notification with ticker and subtext
            builder = CreateBaseNotificationBuilder()
                      .SetContentTitle("With subtext and ticker")
                      .SetSubText("Some subtext").SetTicker("Accessibility text");
            Notify(builder);

            //Auto-canceling notification (20s)
            builder = CreateBaseNotificationBuilder()
                      .SetContentTitle("With timeout")
                      .SetTimeoutAfter(20L * 1000L);
            Notify(builder);

            //Ongoing notification
            builder = CreateBaseNotificationBuilder()
                      .SetContentTitle("Ongoing one")
                      .SetOngoing(true);
            Notify(builder);

            //One-time alerting scheduled repeating notification
            builder = CreateBaseNotificationBuilder()
                      .SetContentTitle("Alert once")
                      .SetOnlyAlertOnce(true);
            var        time           = DateTime.Now.AddSeconds(5);
            const long intervalMillis = 2000;

            _notificationId++;
            AGNotificationManager.NotifyRepeating(null, _notificationId, builder.Build(), intervalMillis, time);

            //Notification with button - available in KitKat (20) or higher
            if (AGDeviceInfo.SDK_INT >= AGDeviceInfo.VersionCodes.KITKAT_WATCH)
            {
                builder = CreateBaseNotificationBuilder()
                          .SetContentTitle("With button")
                          .AddAction(Notification.CreateOpenUrlAction("https://github.com/TarasOsiris/android-goodies-docs-PRO/wiki", "notify_icon_small", "Open URL"));
                Notify(builder);
            }

            builder = CreateBaseNotificationBuilder().SetGroupSummary(true);
            Notify(builder);
        }