title: PushSharp Google Cloud Messaging Heads-up notification
body: <p>I'm developing an application for Android and iOS and I'm using PushSharp (on server-side) to send push notifications to both platform. In particular I'm using (for Android) the Firebase platform (FCM).</p>
  
  <p>Following <a href="https://developers.google.com/cloud-messaging/http-server-ref#downstream-http-messages-json" rel="nofollow noreferrer">this</a> guide I was able to send push notification to an Android device setting icon and sound too but I think there is a problem. 
  When the notification arrives it doesn't being shown as Heads-up notification but only as status bar notification. </p>
  
  <p>To be clear, I would:</p>
  
  <p><a href="https://i.stack.imgur.com/zDxzj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zDxzj.jpg" alt="enter image description here"></a></p>
  
  <p>but i see only the application icon that appears on the status bar.</p>
  
  <p>How can I tell to FCM to show my notification as Head-Up notification similary to what I obtain with the following code?</p>
  
  <pre><code>NotificationCompat.Builder mBuilder =
                  new NotificationCompat.Builder(context)
                          .setSmallIcon(R.drawable.ic_media_play)
                          .setContentTitle("My notification")
                          .setContentText("Hello World!")
                          .setDefaults(Notification.DEFAULT_ALL)
                          .setPriority(Notification.PRIORITY_HIGH);
  </code></pre>