Created
July 12, 2017 18:58
-
-
Save mattrobmattrob/7db5c74a76c0f23ba2f031208046441e to your computer and use it in GitHub Desktop.
Strava Apple Watch Blog - Notifications
This file contains 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
__block BOOL areNotificationsAuthorized = NO; | |
[UNUserNotificationCenter getNotificationSettingsWithCompletionHandler:^(UNNotificationSettings * _Nonnull settings) { | |
areNotificationsAuthorized = UNAuthorizationStatusAuthorized == settings.authorizationStatus; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment