remove notification title stuff from onboarding

This commit is contained in:
Trey t
2022-02-27 15:25:21 -06:00
parent 2decfd4aeb
commit 8fd0ea94d7
6 changed files with 26 additions and 31 deletions

View File

@@ -31,12 +31,11 @@ class LocalNotification {
public class func rescheduleNotifiations() {
if let data = GroupUserDefaults.groupDefaults.object(forKey: UserDefaultsStore.Keys.savedOnboardingData.rawValue) as? Data,
let model = try? JSONDecoder().decode(OnboardingData.self, from: data) {
LocalNotification.scheduleReminder(atTime: model.date,
withTitle: model.title)
LocalNotification.scheduleReminder(atTime: model.date)
}
}
public class func scheduleReminder(atTime time: Date, withTitle title: String) {
public class func scheduleReminder(atTime time: Date) {
self.removeNotificaiton()
LocalNotification.testIfEnabled(completion: { result in