Created
April 11, 2019 02:54
-
-
Save interstateone/5fdc73b666d15017a516d04ebbfc59de to your computer and use it in GitHub Desktop.
Non-interruptive notifications on iOS
This file contains hidden or 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().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