title: Sending image Via Push notification not working in iOS
body: <p>As per documentation I added NotificationExtension. Here is the code</p>
  
  <pre><code>import UserNotifications
  import Firebase
  import FirebaseMessaging
  
  class NotificationService: UNNotificationServiceExtension {
  
      var contentHandler: ((UNNotificationContent) -&gt; Void)?
      var bestAttemptContent: UNMutableNotificationContent?
  
      override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -&gt; Void) {
          self.contentHandler = contentHandler
          bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
  
          if let bestAttemptContent = bestAttemptContent {
              // Modify the notification content here...
              bestAttemptContent.title = "\(bestAttemptContent.title) [modified]"
  
              //contentHandler(bestAttemptContent)
          }
  
          Messaging.serviceExtension().populateNotificationContent(self.bestAttemptContent!, withContentHandler: contentHandler)
      }
  
      override func serviceExtensionTimeWillExpire() {
          // Called just before the extension will be terminated by the system.
          // Use this as an opportunity to deliver your "best attempt" at modified content, otherwise the original push payload will be used.
          if let contentHandler = contentHandler, let bestAttemptContent =  bestAttemptContent {
              contentHandler(bestAttemptContent)
          }
      }
  }
  </code></pre>
  
  <p>The firebase console shows the image</p>
  
  <p>[![enter image description here][1]][1]</p>
  
  <p>However in debug didReceive never calls nor the notification i receive has the image, even tho i have set notification as persistent in my iPhone settings.</p>
  
  <p>What needs to be done to fix this issue? How can I see if NotificationService is attached to my App properly</p>
  
  <p>[</p>
  
  <pre><code>AnyHashable("google.c.a.ts"): 1575541521, AnyHashable("aps"): {
      alert =     {
          body = "Test for imge";
          title = Test;
      };
      "mutable-content" = 1;
      sound = default;
  }, AnyHashable("google.c.a.e"): 1, AnyHashable("google.c.a.c_l"): Data, AnyHashable("fcm_options"): {
      image = "https://thevowapp.com/iphoneapp/peri/media/portstar.png";
  }, AnyHashable("gcm.notification.sound2"): default, AnyHashable("google.c.a.udt"): 0, AnyHashable("gcm.n.e"): 1, AnyHashable("gcm.message_id"): 1575541521949602, AnyHashable("google.c.a.c_id"): 5702933232519496714]
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/u4dKR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u4dKR.png" alt="enter image description here"></a></p>
  
  <p>Added Notification to Extension too but I dont see any Background mode atm, tho they are not required as the code is not there yet. The debugger still wont roll.</p>