Here is my code
im using unity cloud build to build
Xcode 8.3.2
but nothing happens
void Start()
{
// schedule notification to be delivered in 10 seconds
Debug.Log(“start Notification”);
UnityEngine.iOS.LocalNotification notif = new UnityEngine.iOS.LocalNotification();
notif.fireDate = DateTime.Now.AddSeconds(10);
notif.alertBody = “Hello!”;
UnityEngine.iOS.NotificationServices.ScheduleLocalNotification(notif);
}
void Update()
{
if (UnityEngine.iOS.NotificationServices.localNotificationCount > 0) {
Debug.Log(UnityEngine.iOS.NotificationServices.localNotifications[0].alertBody);
UnityEngine.iOS.NotificationServices.ClearLocalNotifications();
}
}