Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch userNotificationsAuthorizationStatus {
- case .notDetermined:
- requestPermission()
- case .authorized, .denied, .provisional:
- fallthrough
- @unknown default:
- // No need to request permission.
- print("Didn't request permission for User Notifications")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement