when saving onboarding data update notification time and title

This commit is contained in:
Trey t
2022-01-22 14:28:53 -06:00
parent e1839d54ae
commit 2a89ccece6
3 changed files with 4 additions and 8 deletions

View File

@@ -28,11 +28,12 @@ class LocalNotification {
}
}
public class func scheduleReminder(atTime time: Date) {
public class func scheduleReminder(atTime time: Date, withTitle title: String) {
let _ = LocalNotification.createNotificationCategory()
let notificationContent = UNMutableNotificationContent()
notificationContent.title = "How was your day?"
notificationContent.title = title
notificationContent.badge = NSNumber(value: 1)
notificationContent.sound = .default
notificationContent.categoryIdentifier = LocalNotification.categoryName