title: Java Server -- send Push with POST to google Firebase Cloud
body: <p>After I tested the push notifications are working with Postman I'd like to send a push request to FCM when I am sending a message in my app. The function called is going to my Java server and call a function like :</p>
  
  <pre><code>@POST
      @Consumes(MediaType.APPLICATION_JSON)
      public Response sendMsg(Message m) throws ExceptionFacade {
  ...
  }
  </code></pre>
  
  <p>So each time I call this function I'd like to send a POST request to <a href="https://fcm.googleapis.com/fcm/send" rel="nofollow">https://fcm.googleapis.com/fcm/send</a> with a json.</p>
  
  <p>I want to know if there is already a code ready for a java server ? and also some help how to implement it.</p>
  
  <p>Also I don't understand if I can use a php file to do it (I find things like this <a href="https://github.com/Paragraph1/php-fcm" rel="nofollow">https://github.com/Paragraph1/php-fcm</a> ). I am using angularjs.</p>
  
  <p>Thank you guys !</p>