Node.js Function for cloud messaging with Firebase Admin Messaging.
Función de Node.js para mensajería en la nube con Firebase Admin Mensajería.
Set your message in message.js:
Establecer el mensaje en message.js:
const message = {
notification: {
title: 'title',
body: 'body'
},
topic: 'topic'
};
Set firebase service account in service-account.json.
Establecer la cuenta de servicio de firebase en service-account.json.
For sending the message, run:
Para enviar el mensaje, ejecutar:
npm run send
Want to file a bug, contribute some code, or improve documentation? Thanks! Feel free to contact me at @davidvives or at davr59@outlook.com.
¿Quiere reportar un error o una pulga, contribuir con código o mejorar la documentación? ¡Muchas gracias! Puede contactarme a @davidvives o a davr59@outlook.com.