A FCM relay server for SchoolSquirrel.
Run the docker container and specify the following environment variables:
typeproject_idprivate_key_idprivate_keyclient_emailclient_idauth_uritoken_uriauth_provider_x509_cert_urlclient_x509_cert_url
You can get those from the Firebase Console.
To send a notification, just make a post request to http(s)://serverurl.tld with the payload in the request body.
You can only send notifications to specific devices using their token. Sending to conditions or topics is disabled for security reasons.
In addition, only the notification and data properties are allowed.
npm i- Create a
.envfile and insert the credentials there (format:key=value) npm start