Skip to content

Commit 3d078b1

Browse files
committed
Fixed Push Notifications userInfo.
1 parent e991da1 commit 3d078b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/Core/Notifications/Notifications.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,10 @@ extension Notifications: UNUserNotificationCenterDelegate {
173173
///
174174
/// - Parameter response: a message reference (see `MessageReference`).
175175
public static func parseMessageReference(notificationResponse response: UNNotificationResponse) -> MessageReference? {
176-
guard let userInfo = response.notification.request.content.userInfo as? [String: String],
177-
let messageId = userInfo[NotificationUserInfoKeys.messageId.rawValue],
178-
let channelId = userInfo[NotificationUserInfoKeys.channelId.rawValue] else {
176+
let userInfo = response.notification.request.content.userInfo
177+
178+
guard let messageId = userInfo[NotificationUserInfoKeys.messageId.rawValue] as? String,
179+
let channelId = userInfo[NotificationUserInfoKeys.channelId.rawValue] as? String else {
179180
return nil
180181
}
181182

0 commit comments

Comments
 (0)