Presents a local notification immediately.
function Start() { var notif = new LocalNotification(); notif.alertBody = "Hello!"; NotificationServices.PresentLocalNotificationNow(notif); }
function Update() { if (NotificationServices.localNotificationCount > 0) { Debug.Log(NotificationServices.localNotifications[0].alertBody); NotificationServices.ClearLocalNotifications(); } }
Did you find this page useful? Please give it a rating: