title: how to send push notification with angularJS and cordova FCM
body: <p>I am totally new to push notification in Ionic App. Now i am able to receive notification when someone send notification. I want able to push notification when user conduct some action. Is there any way to send notification from TypeScript using Cordova FCM? </p>
  
  <p>FCM listener</p>
  
  <pre><code>constructor(private fcm: FCM){
        fcm.subscribeToTopic('all');
  
  
    fcm.onNotification().subscribe(data=&gt;{
      if(data.wasTapped){
        console.log("Received in background");
      } else {
        console.log("Received in foreground");
      };
    })
  }
  </code></pre>