Hi, I saw a couple threads like this: http://issuetracker.unity3d.com/issues/local-notifications-are-not-working-on-ios-8 and http://forum.unity3d.com/threads/local-notification-not-working-in-ios-8-unity4-5-4-xcode6-0-1.271487/ and am wondering if it's still an issue in 5. A responder said it was fixed, but I'm having issues.
In my Start(), I call:
#if UNITY_IPHONE
iOS.NotificationServices.RegisterForNotifications(iOS.NotificationType.Alert);
#endif
and in another function, I call:
Debug.Log("ALERT!!!");
var tornadoAlert: iOS.LocalNotification = new iOS.LocalNotification();
tornadoAlert.alertAction = "Alert!";
tornadoAlert.alertBody = "tornado test!";
tornadoAlert.soundName = "tornado_alert";
tornadoAlert.fireDate = Date.Now.AddSeconds(2);
iOS.NotificationServices.ScheduleLocalNotification(tornadoAlert);
But it doesn't work. The editor will log the debug message, but the Xcode console will not. Any ideas?
Thanks!
: jesse
↧