title: firebase how to send push notifications automatically
body: <p>How would i send a push notification automatically, instead of doing it through the firebase console manually. Like when user invites another user send a notification to the user that they have been invited. I am getting the user device token by doing <code>firebase.messaging().getToken();</code></p>