Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  2. // Override point for customization after application launch.
  3. UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound]) { [weak self] granted, error in
  4. if granted {
  5. print("Permission granted")
  6. } else {
  7. print("Permission not granted")
  8. }
  9. }
  10. return true
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement