title: How to send FCM notification to all android devices using Node.js
body: <p>I want to send the notification to my Android app developed using Ionic t from Node.Js code. I have tried following code and getting <code>Exactly one of topic, token or condition is required.</code></p>
  
  <p>How can I send notification all my users without any condition?</p>
  
  <pre><code>var serviceAccount = require("/path/to/config.json");
  
  admin.initializeApp({
    credential: admin.credential.cert(serviceAccount),
    databaseURL: "https://myApp.firebaseio.com"
  });
  
  var message = {
      notification: {
        title: '$GOOG up 1.43% on the day',
        body: '$GOOG gained 11.80 points to close at 835.67, up 1.43% on the day.'
      }
    };
  
  
  admin.messaging().send(message).then(res=&gt;{
      console.log("Success",res)
  }).catch(err=&gt;{
      console.log("Error:",err)
  })
  </code></pre>