Add ArticleFetcherType and change state restoration to use new type.

This commit is contained in:
Maurice Parker
2019-11-14 15:06:32 -06:00
parent 48fef65bc4
commit 0d66259650
22 changed files with 290 additions and 230 deletions

View File

@@ -53,7 +53,7 @@ private extension UserNotificationManager {
}
content.sound = UNNotificationSound.default
content.userInfo = article.deepLinkUserInfo
content.userInfo = [UserInfoKey.articlePath: article.pathUserInfo]
let request = UNNotificationRequest.init(identifier: "articleID:\(article.articleID)", content: content, trigger: nil)
UNUserNotificationCenter.current().add(request)