title: iOS push notifications - badges won't show
body: <p>If I receive the notification, the badge doesn't show.</p>
  
  <p>Here's where I register for notifications (as you can see, badge is selected):</p>
  
  <pre><code>    if #available(iOS 10.0, *) {
          UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { (granted, error) in
              if error == nil {
  
                  if granted {
                      print("granted")
  
                      DispatchQueue.main.async {
                          UIApplication.shared.registerForRemoteNotifications()
                          UNUserNotificationCenter.current().delegate = self
                      }
                  } else {
                      print("not granted")
                  }
              }
          }
      } else {
          let settings: UIUserNotificationSettings = UIUserNotificationSettings(types: [UIUserNotificationType.badge, UIUserNotificationType.sound, UIUserNotificationType.alert], categories: nil)
          UIApplication.shared.registerForRemoteNotifications()
          UIApplication.shared.registerUserNotificationSettings(settings)
      }
  </code></pre>
  
  <p>Here's my payload:</p>
  
  <pre><code>                notificationJsonPayload =
                      "{\"aps\" : " +
                      " {" +
                      " \"alert\": \"$(Message)\"," +
                      " \"badge\": 1" +
                      " }" +
                      "}";
  </code></pre>
  
  <p>The notification appears at the top but there isn't any badge on the app icon.</p>