title: Firebase Cloud Messaging: How to set the notification icon on android?
body: <p>I am having trouble setting the notification icon on android studio. </p>
  
  <p>I set up the drawable folder like so:</p>
  
  <p><a href="https://i.stack.imgur.com/78sPO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/78sPO.png" alt="enter image description here"></a></p>
  
  <p>And I've also set the default icon in my AndroidManifest.xml file:</p>
  
  <blockquote>
  <pre><code>  &lt;meta-data
      android:name="com.google.firebase.messaging.default_notification_icon"
      android:resource="@drawable/notification_icon" /&gt;
  </code></pre>
  </blockquote>
  
  <p>And here I'm setting the icon field to <code>notification_icon</code>: <a href="https://developers.google.com/cloud-messaging/http-server-ref#downstream-http-messages-json" rel="noreferrer">https://developers.google.com/cloud-messaging/http-server-ref#downstream-http-messages-json</a> (p.s. I'm aware that's GCM, but it works. I'm receiving the notification with everything besides the icon)</p>
  
  <p>What am I missing? All I see is a white square inside a grey circle.</p>
  
  <p>This is my backend code: <code>Pushex.push(%{title: user.name, body: "message goes here", badge: 1, sound: "default", icon: "notification_icon"}, to: user.fcm_token, using: :gcm)</code> (<a href="https://github.com/tuvistavie/pushex" rel="noreferrer">https://github.com/tuvistavie/pushex</a>)</p>