title: Android app not receiving Firebase Notification when app is stopped or killed by user or android OS
body: <p>My android app is not receiving any firebase notification when the app is killed, the <code>FirebaseMessagingService</code> gets killed by the operating system when I close the application. Everything works fine when the app is in the foreground or in the background. When the app is in the background and I send a data message it's received by <code>onMessageReceived()</code> in my <code>FirebaseMessagingService</code> (which interestingly is created and then destroyed for each message i.e. <code>FirebaseMessagingService</code>). 
  When I kill the app (by swiping from open app list) messages are no longer received in <code>onMessageReceived()</code>. All services get killed!!
  Can anyone please help me? Thanks in advance! </p>
  
  <pre><code>    &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
      &lt;!-- DefaultOrderedBroadcastReceiver will start this service to send notifications to system tray --&gt;
          &lt;service
              android:name=".fcm.SystemTrayNotificationsSenderIntentService"
              android:enabled="true"
              android:exported="false" /&gt;
  
          &lt;!-- the FCM receiver service --&gt;
          &lt;service
              android:name=".fcm.FCMNotificationReceiverService"
              android:exported="true"
              android:stopWithTask="false"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="com.google.firebase.MESSAGING_EVENT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  
  &lt;service
         android:name=".fcm.chat.FCMChatOfflineMessagesNotificationJobSchedulerService"
              android:exported="false"
              android:permission="android.permission.BIND_JOB_SERVICE" /&gt;
  </code></pre>