Last active
June 1, 2018 07:46
-
-
Save pgpt10/d6d136204d03b7bfd11a728d4cc834c5 to your computer and use it in GitHub Desktop.
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
func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping (UNNotificationContentExtensionResponseOption) -> Void) | |
{ | |
if response.actionIdentifier == "accept" | |
{ | |
print("Accept - from Extension") | |
DispatchQueue.main.async { | |
completion(.dismissAndForwardAction) | |
} | |
} | |
else | |
{ | |
DispatchQueue.main.async { | |
completion(.dismiss) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment