Created
May 28, 2018 17:27
-
-
Save pgpt10/09cee5d2063b7ecb48554d052b9b921a 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
let center = UNUserNotificationCenter.current() | |
center.requestAuthorization(options: [.badge, .sound, .alert]) { (granted, error) in | |
//granted = yes, if app is authorized for all of the requested interaction types | |
//granted = no, if one or more interaction type is disallowed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment