Hi all,
I'm trying to use FCM to send notifications from my Raspberry to all devices subscribing to the topic "allDevices".
I have added the server key as the environmental variable FCM_SERVER_KEY in settings.js.
Then I added a function node to the flow with the following code:
msg.payload = {
"to":"allDevices",
"notification": {
"title":"test",
"body":"Hello Android!"
}
}
return msg;
This function node is the input for the fcm push node.
However, I only get the error message "Couldnt send message". Any tips?