diff --git a/Model.xcdatamodeld/Model.xcdatamodel/contents b/Model.xcdatamodeld/Model.xcdatamodel/contents index b06c7bf..ac6382c 100644 --- a/Model.xcdatamodeld/Model.xcdatamodel/contents +++ b/Model.xcdatamodeld/Model.xcdatamodel/contents @@ -1,15 +1,18 @@ - - - + + + + + + - - + + - + \ No newline at end of file diff --git a/ntfy/AppDelegate.swift b/ntfy/AppDelegate.swift index a12ccac..d7aab76 100644 --- a/ntfy/AppDelegate.swift +++ b/ntfy/AppDelegate.swift @@ -161,9 +161,9 @@ extension AppDelegate: MessagingDelegate { let dataDict: [String: String] = ["token": fcmToken ?? ""] NotificationCenter.default.post( - name: Notification.Name("FCMToken"), - object: nil, - userInfo: dataDict + name: UserNotifications.Notification.Name("FCMToken"), + object: nil, + userInfo: dataDict ) // TODO: If necessary send token to application server. // Note: This callback is fired at each app startup and whenever a new token is generated.