|
|
@ -333,6 +333,17 @@ extension AppDelegate { |
|
|
|
|
|
|
|
return destinationType |
|
|
|
} |
|
|
|
|
|
|
|
private func urlClickAction(userInfo: [String : AnyObject]?) -> PushNotificationAction? { |
|
|
|
guard |
|
|
|
let aps = userInfo?["aps"] as? [String: AnyObject], |
|
|
|
let destination = aps["category"] as? String, |
|
|
|
let destinationType = PushNotificationAction.getAction(target: destination) else { |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
return destinationType |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: - MessagingDelegate |
|
|
|