public void Awake() { this.Toggle.isOn = (NotificationManager.GetNotificationCallback() != null); }
public void ScheduleSimple(int seconds) { NotificationManager.Send(TimeSpan.FromSeconds((double)seconds), "Simple notification", "Please rate the asset on the Asset Store!", new Color(1f, 0.3f, 0.15f), NotificationIcon.Bell, false); }
public void ScheduleNormal() { NotificationManager.SendWithAppIcon(TimeSpan.FromSeconds(5.0), "Notification", "Notification with app icon", new Color(0f, 0.6f, 1f), NotificationIcon.Message, false); }
public void ScheduleSimple() { NotificationManager.Send(44, TimeSpan.FromSeconds(5), "Simple notification", "Customize icon and color", new Color(1, 0.3f, 0.15f)); }
public void CancelAll() { NotificationManager.CancelAll(); }
public void ScheduleNormal() { NotificationManager.SendWithAppIcon(TimeSpan.FromSeconds(5), "Conta Gotas", "Novos minigames estão à sua espera! Vem jogar!", new Color(0, 0.6f, 1), NotificationIcon.Message); }
public void Awake() { // TODO: Please note, that receiving callback will not work if your app was sleeping. It will only work if app was opened (not resumed) by clicking the notification. Toggle.isOn = NotificationManager.GetNotificationCallback() != null; }
public void ScheduleNormal() { NotificationManager.SendWithAppIcon(TimeSpan.FromSeconds(5), "Notification", "Notification with app icon", new Color(1, 0.3f, 0.15f), NotificationIcon.Message); }
public void Awake() { Toggle.isOn = NotificationManager.GetNotificationCallback() != null; // Check notification callback data when app was started }
public void SendNotif() { NotificationManager.SendWithAppIcon(TimeSpan.FromSeconds(10), "PhonM", "An intruder is partying hard in your phone, you should check what is going on", Color.cyan, NotificationIcon.Star); }