I'm trying to send a notification via FCM without the Firebase Console. I want to send a notification from my application. I saw a comment saying:
You can send a notification by using cURL.
curl -X POST --header "Authorization: key=<API_ACCESS_KEY>" --Header "Content-Type: application/json" https://fcm.googleapis.com/fcm/send -d "{\"to\":\"<YOUR_DEVICE_ID_TOKEN>\",\"notification\":{\"body\":\"Yellow\"} \"priority":\"10"}"
I want to send a notification to all of my application users. How do I send this command to the Google Service? Do you have any code for sending a notification?
Thank you for your help.