IOS LOCAL NOTIFICATION NOT WORKING

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();
}
}

Has the app registered for notifications?

not sure… but my 1 of the app I’m using this code the notification was working

it there any guide using local notification for ios?

Well have you called RegisterForNotifications and accepted notifications on the device?

There is the API docs.

it this require for local notification? im not using push notification

Yes

okay thank you for your time :smile: hope this work… building now in unity cloud