Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save interstateone/5fdc73b666d15017a516d04ebbfc59de to your computer and use it in GitHub Desktop.
Save interstateone/5fdc73b666d15017a516d04ebbfc59de to your computer and use it in GitHub Desktop.
Non-interruptive notifications on iOS
UNUserNotificationCenter.current().getNotificationSettings { settings in
if settings.authorizationStatus == .authorized,
settings.soundSetting == .disabled,
settings.alertSetting == .disabled,
settings.badgeSetting == .disabled {
// Deliver Quietly
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment