title: Swift 3 - Firebase Push Notification, How can I do?
body: <p>I do like below in Swift 2. But It's not working in Swift 3. How Can I provide this? If someone explain this It would be great.</p>
  
  <p><strong>didFinishLaunchingWithOptions</strong></p>
  
  <pre><code>let notificationSettings = UIUserNotificationSettings(forTypes: [.Alert, .Badge, .Sound], categories: nil)
  UIApplication.sharedApplication().registerUserNotificationSettings(notificationSettings)
  application.registerForRemoteNotifications()
  </code></pre>
  
  <p>and</p>
  
  <pre><code>func application(application: UIApplication, didRegisterUserNotificationSettings notificationSettings: UIUserNotificationSettings) {
      if notificationSettings.types != .None {
          application.registerForRemoteNotifications()
      }
  }
  
  func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) {
  
      print("Meesage ID \(userInfo["gcm_message_id"]!)")
      print(userInfo)
  
  }
  </code></pre>
  
  <p>I can do simple local notification but, I couldn't remote push notification from Firebase.</p>
  
  <blockquote>
    <p>I tried</p>
  </blockquote>
  
  <pre><code>UNUserNotificationCenter.currentNotificationCenter().delegate = self
  
  UNUserNotificationCenter.currentNotificationCenter().requestAuthorizationWithOptions([.Alert, .Badge, .Sound]) { (success, error:NSError?) in
  
          if success {
              print("Notification access true!")
              application.registerForRemoteNotifications()
          }
          else {
              print(error?.localizedDescription)
          }
  
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) {
  
      print("Meesage ID \(userInfo["gcm_message_id"]!)")
      print(userInfo)
  
  }
  </code></pre>
  
  <p>still doesn't work.</p>