title: Firebase Cloud Messaging not sending aps payload in correct format for iOS Notification Content & Service Extensions
body: <p>I'm trying to implement notifications using Firebase. The notification is received correctly when the app is in the background or foreground. So, the basic mechanics are working. </p>
  
  <p>Now I've added Content Extensions and Service Extensions to the app. The Content Extension works when I use a local notification, but the Firebase message payload seems incorrect as far as the optional fields are considered. Here is a link to an image of my console: </p>
  
  <p><img src="https://i.stack.imgur.com/ZN8hg.png" alt="Firebase Console Image with mutable-content &amp; category options"></p>
  
  <p>And here is the Firebase remote notification payload that comes across (with some of the long Google numbers edited for anonymity:</p>
  
  <pre><code>{
      aps = 
      {
          alert = 
          {
          body = "Eureka! 11";
          title = "Patient is not doing well";
          };
      };
      category = provider-body-panel;
      gcm.message_id = 0:149073;
      gcm.n.e = 1;
      google.c.a.c_id = 2825604;
      google.c.a.e = 1;
      google.c.a.ts = 149073;
      google.c.a.udt = 0;
      mutable-content = 1;
  }
  </code></pre>
  
  <p>It appears that the "category" and "mutable-content" are not in the correct place. They should be in the aps payload.</p>
  
  <p>How can I get those options to be in the payload so that my app can correctly parse it and connect it with the Content and Service Extensions?</p>