Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
- // Override point for customization after application launch.
- UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound]) { [weak self] granted, error in
- if granted {
- print("Permission granted")
- } else {
- print("Permission not granted")
- }
- }
- return true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement