Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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