title: Ionic / Capacitor - PushNotiifcations - Android - “notification” + “data” message
body: <p>I am using PushNotifications Capacitor plugin and FCM to send the notifications, everything works fine until I want to send a Push Notification with both <code>notification</code> and <code>data</code> fields on Android.</p>
  <p>What I want to do is to send a custom data with the notification and consume the notification on app resume. I am using <code>PushNotifications.getDeliveredNotifications()</code> method to get the notifications on resume, on iOS I get all the notifications with proper <code>data</code>, but on Android <code>data</code> property is replaced with the object below:</p>
  <pre><code>{
    body: &quot;My Body&quot;,
    data: {
      android.appInfo: &quot;ApplicationInfo{809371c app}&quot;,
      android.bigText: &quot;My Body&quot;,
      android.progress: 0,
      android.progressIndeterminate: false,
      android.progressMax: 0,
      android.reduced.images: true,
      android.showChronometer: false,
      android.showWhen: true,
      android.template: &quot;android.app.Notification$BigTextStyle&quot;,
      android.text: &quot;My Body&quot;,
      android.title: &quot;My Title&quot;,
      gameDndOn: false,
      specialType: &quot;&quot;,
      topFullscreen: false,
      groupSummary: false,
      id: 0,
      title: &quot;My Title&quot;
    }
  }
  </code></pre>
  <p>I see in the FCM docs for Android apps that if both notification and data fields are present and the app is in the background the notification lands in the system tray and data in extras of the intent.</p>
  <p>I am getting proper data when I tap on the notification, but in my case I want to get that on resume, without tapping on the notification.</p>
  <p>Is there any way to get to that data in that case?</p>