title: Same push notification displayed twice
body: <p>I keep getting the same push notification twice in the notification list. The iOS is 10.2. Registration for push has been done only once.  I tested the push using "easy APNs provider" and it successfuly shows the push once. However, when the actual push comes from server it repeats twice. 
  Any help would be appreciated. </p>
  
  <pre class="lang-swift prettyprint-override"><code>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -&gt; Bool { registerPushNotifications() } 
  
  func registerPushNotifications() {
    DispatchQueue.main.async {
      let settings = IUserNotificationSettings(types: [.badge, .sound, .alert], categories: nil)
      UIApplication.shared.registerUserNotificationSettings(settin‌​gs)
    }
  }
  </code></pre>