Send push notifications from server with FCM
<p>Recently I asked a question on sending push notifications using GCM: <a href="https://stackoverflow.com/questions/37107088/send-push-notifications-to-android/37108590?noredirect=1#comment61830794_37108590">Send push notifications to Android</a>. Now that there is FCM, I am wondering how different it would be from the server side development. Coding wise, are they the same? Where can I find example FCM codes showing sending push notifications from server to Android device?</p>

<p>Do I need to download any JAR library for sending notifications to FCM using Java codes? The example codes in <a href="https://stackoverflow.com/questions/37107088/send-push-notifications-to-android/37108590?noredirect=1#comment61830794_37108590">Send push notifications to Android</a> shows sending push notifications using GCM and a server side GCM JAR file is required.</p>

<p>However, another example in <a href="https://www.quora.com/How-do-I-make-a-post-request-to-a-GCM-server-in-Java-to-push-a-notification-to-the-client-app" rel="noreferrer">https://www.quora.com/How-do-I-make-a-post-request-to-a-GCM-server-in-Java-to-push-a-notification-to-the-client-app</a> shows sending push notifications using GCM and no server side GCM JAR file is required since it is just sending via an HTTP connection. Can the same codes be used for FCM? The URL used is "<a href="https://android.googleapis.com/gcm/send" rel="noreferrer">https://android.googleapis.com/gcm/send</a>". What would be the equivalent URL for FCM?</p>

<p>Thanks in advance.</p>