closed #90
This commit is contained in:
@@ -45,7 +45,9 @@ class LocalNotification {
|
||||
let _ = LocalNotification.createNotificationCategory()
|
||||
|
||||
let notificationContent = UNMutableNotificationContent()
|
||||
notificationContent.title = UserDefaultsStore.personalityPackable().randomPushNotificationTitle()
|
||||
let strings = UserDefaultsStore.personalityPackable().randomPushNotificationStrings()
|
||||
notificationContent.title = strings.title
|
||||
notificationContent.body = strings.body
|
||||
|
||||
notificationContent.badge = NSNumber(value: 1)
|
||||
notificationContent.sound = .default
|
||||
@@ -65,7 +67,8 @@ class LocalNotification {
|
||||
print(theError.localizedDescription)
|
||||
}
|
||||
}
|
||||
case .failure(_):
|
||||
case .failure(let error):
|
||||
print(error)
|
||||
// Todo: show enable this
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user