title: Ionic Firebase push notification capacitor - can't retrieve body content and/or title when app is closed
body: <p>I'm building an app where I send notifications from the Firebase Cloud Messaging service. When the app is in the foreground, I can get the content of the notification and display it in the app.
  However, when the app is closed/ in the background, I still receive the notification but I cannot show the content or display it in-app.</p>
  <p>Here is the code I'm using</p>
  <pre><code>PushNotifications.addListener(
                  'pushNotificationReceived',
                  (notification: PushNotificationSchema) =&gt; {
                      alert('Push received: ' + JSON.stringify(notification.body));
                      this.notif = {
                          date:new Date().toISOString().slice(0, 10)+' '+new Date().toISOString().slice(11, 19),
                          title: notification.title,
                          body: notification.body,
                          subtitle:notification.subtitle
                      }
                      this.dataService.addData(this.notif)
                      this.loadData()
                  },
              );
  
              PushNotifications.addListener(
                  'pushNotificationActionPerformed',
                  (notification:ActionPerformed) =&gt; {
                      notification.notification.click_action
                      const item = {
                          date:new Date().toISOString().slice(0, 10)+' '+new Date().toISOString().slice(11, 19),
                          title: notification.notification.title,
                          body: notification.notification.body,
                          subtitle:notification.notification.subtitle
                      }
                      this.dataService.addData(item)
                      this.loadData()
                      alert('Push action performed: ' + JSON.stringify(notification));
               
                  },
              );
  </code></pre>
  <p>Thanks in advance</p>