feat(ios): route notification taps to messages

Signed-off-by: Tom Brow <tomb@squareup.com>
This commit is contained in:
Tom Brow
2026-08-17 12:43:49 -07:00
parent b3875f6ade
commit cd112de7b7
14 changed files with 525 additions and 10 deletions

View File

@@ -38,6 +38,9 @@ final class NotificationService: UNNotificationServiceExtension {
return
}
bestAttemptContent = content
var cleanUserInfo = content.userInfo
cleanUserInfo.removeValue(forKey: BuzzPushNavigationTarget.userInfoKey)
content.userInfo = cleanUserInfo
resolver.resolve { [weak self] resolution in
guard let self else { return }
@@ -50,6 +53,11 @@ final class NotificationService: UNNotificationServiceExtension {
if let threadIdentifier = resolution.threadIdentifier {
content.threadIdentifier = threadIdentifier
}
if let navigationTarget = resolution.navigationTarget {
var userInfo = content.userInfo
userInfo[BuzzPushNavigationTarget.userInfoKey] = navigationTarget.userInfoValue
content.userInfo = userInfo
}
}
self.finish(content)
}