Created
August 3, 2017 22:38
-
-
Save clowestab/d4444b8e1a71a5bc3746a9faca01a3f9 to your computer and use it in GitHub Desktop.
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
let types = UIUserNotificationSettings(forTypes: [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound], categories: nil) | |
UIApplication.sharedApplication().registerUserNotificationSettings(types) | |
UIApplication.sharedApplication().registerForRemoteNotifications() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment