Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Is there still an issue with LocalNotifications in Unity 5?

$
0
0
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

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>