Created
June 7, 2019 01:38
-
-
Save brunomunizaf/cedfe5cc6303ce997307431eb15a5443 to your computer and use it in GitHub Desktop.
Rich media push notifications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - UNUserNotificationCenterDelegate | |
extension AppDelegate: UNUserNotificationCenterDelegate { | |
func userNotificationCenter(_ center: UNUserNotificationCenter, | |
didReceive response: UNNotificationResponse, | |
withCompletionHandler completionHandler: @escaping () -> Void) { | |
if response.actionIdentifier == "open.action" { | |
// OPEN DOOR | |
} | |
completionHandler() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment