Adjunto de medios en iOS 10 Notificaciones Push

Tengo problemas para agregar una imagen a mi notificación push en iOS 10.

He agregado una extensión del servicio de notificaciones y he usado el siguiente código:

        override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
    self.contentHandler = contentHandler
    bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)


    if let urlString = request.content.userInfo["image-url"] as? String, let fileUrl = URL(string: urlString) {
        URLSession.shared.downloadTask(with: fileUrl) { (location, response, error) in
            if let location = location {
                let options = [UNNotificationAttachmentOptionsTypeHintKey: kUTTypePNG]
                if let attachment = try? UNNotificationAttachment(identifier: "", url: location, options: options) {
                    self.bestAttemptContent?.attachments = [attachment]
                }
            }
            self.contentHandler!(self.bestAttemptContent!)
            }.resume()
    }
}

Obtuve este código de la primera respuesta a continuación.

El problema que tengo ahora es que se recibe la notificación, con un breve retraso que indica que la descarga debe estar ocurriendo, pero no se muestra ningún archivo adjunto.

Estoy asumiendo queserviceExtensionTimeWillExpire() se llama y solo muestra elbestAttempt

Cualquier ayuda es muy apreciada.

Tengo mi carga útil APN configurada correctamente, creo:

apns: {
  aps: { 
    alert: { 
      title: "Title", 
      subtitle: "Subtitle", 
      body: "Body"
    }, 
    "mutable-content": 1
  },
  "image-url": "https://helloworld.com/image.png" 
}

Respuestas a la pregunta(2)

Su respuesta a la pregunta