Since iOS9, local notification aren\'t working properly. Sometimes users receive the notification, sometimes they just don\'t. My notifications are repeated daily. Any idea what
if You need it for iOS9 but under swift 3.1:
final func registerToGetLocalNotificationsFor_iOS9(){
let types : UIUserNotificationType = [.sound, .alert /*, .badge*/]
let mySettings = UIUserNotificationSettings(types: types, categories: nil)
UIApplication.shared.registerUserNotificationSettings(mySettings)
}
on iOS10 is deprecated.