diff --git a/GME Remit/AppDelegate.swift b/GME Remit/AppDelegate.swift index 86c6ce9e..d1633379 100644 --- a/GME Remit/AppDelegate.swift +++ b/GME Remit/AppDelegate.swift @@ -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