title: how to send notification to multiple devices using node-fcm
body: <p>Notification is not working while app is closed</p>
  <p>const token = [&quot;AAASDfsadfasdfaFDSDFSDLFJLSDAJF;DSJFAsdfdsfsdf&quot;];</p>
  <pre><code>app.get('/send-notfication', (req, res) =&gt; {
          
          var FCM = require('fcm-node');
          var fcm = new FCM(serverKey);
       
          var messageToSend = &quot;Hi there this is message&quot;;
  
          var message = {
           to: token,
  
           data: {
             ar_message: messageToSend,
           },
          };
          
          fcm.send(message, function(err, response){
              if (err) {
                  console.log(&quot;Something has gone wrong!&quot;, err);
              } else {
                  console.log(&quot;Successfully sent with response: &quot;, response.results);
                  res.send(&quot;Successfully sent&quot;)
              }
          });
      })
  </code></pre>
  <p>Question is how to set notification title in it ? and notification is not working app is closed neither in background nor in foreground why ?</p>