a guest Jul 21st, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. switch userNotificationsAuthorizationStatus {
  2. case .notDetermined:
  3.     requestPermission()
  4. case .authorized, .denied, .provisional:
  5.     fallthrough
  6. @unknown default:
  7.     // No need to request permission.
  8.     print("Didn't request permission for User Notifications")
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand