Created
May 11, 2020 14:54
-
-
Save BetterProgramming/4918c85c29392e98643a486d9a69ccaf to your computer and use it in GitHub Desktop.
This file contains 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
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { success, error in | |
if success { | |
print("User Accepted") | |
} else if let error = error { | |
print(error.localizedDescription) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment