Im posting a notification in iOS, I dont want to repeat the notification code i have used is.
let notification = UILocalNotification()
notification.timeZone = NSTimeZone.local
//calculation of dateTime
notification.fireDate = dateTime as Date?
notification.repeatInterval = 0
notification.alertBody = "Body"
notification.userInfo = ["title": "Notify", "type": "title", "5436" : "Notify"]
In that condition my notification was not firing. When I give like
notification.repeatInterval = NSCalendar.Unit.day
It is firing.. Is this a feature or issue? How can i post a notification without repeat interval