title: Using phonegap-plugin-push with FCM notifications: how to properly set content-available:1
body: <p>Does <code>content-available</code> have to be a first level child of the push data object for notification event handlers to be triggered by phonegap-plugin-push? </p>
  
  <p>If so is there any way to set <code>content-available: 1</code> as a first level child of the the push data object in notifications from firebase console?</p>
  
  <p><hr />
  I have created an android app with cordova CLI that uses phonegap-plugin-push and I am using Google Firebase console to send push notifications. </p>
  
  <p>Push notifications work as expected when the app is in the foreground. If the app is not in the in the foreground when the push notification arrives (for example, when the app is opened by clicking the notification on the lock screen) the notification event handlers are never called.</p>
  
  <p>I believe that the cause of the problem is that the <code>content-available: 1</code> is
  inside the <code>additionalData</code> object.</p>
  
  <p>The only place I see in firebase console to enter <code>content-available</code> is in the "custom data" field. </p>
  
  <p>This is the push data object received when the app is in the foreground and <code>content-available</code> is set to <code>1</code> in Firebase console > notifications > advanced options > custom data.</p>
  
  <pre><code>data {
    title: "message title", 
    message: "test message 12", 
    additionalData: {
      content-available: "1", 
      coldstart: false, 
      collapse_key: "com.domain.appname", 
      foreground: true
      }
    }
  </code></pre>