Firebase Notification with Javascript

1

Greetings! Well, I'm developing a Firebase-based project that uses many functions from it, such as Firebase Realtime Database to save data and reference them when needed, Firebase Authentication to login, and even Firebase Hosting for hosting site. Being that the main function of the project is based on the Firebase Cloud Message, since the objective of the system is to solve problems in the communication between the condominiums and the employees, in the case the porters, of a condominium, since it was perceived the occurrence of certain confusions in the process of delivery of orders required by the residents, who often passed through the portaria and arrived late in the hand of the residents or, sometimes, not even reached those who placed the order. Therefore, one way of solving the mentioned problem would be to implement a system that would allow the employee to send a notification to the resident who was waiting for the order from his workstation, that is, from a site. notification would be received by the application on the resident's cell phone. However, there is the problem, because since Firebase Hosting only supports static pages (.html), I can not use, at least as far as I know, any language other than Javascript to send site notifications through a simple form that allows the employee to pass the title and the message itself to the user in the application. This way, I would like to know if there is any way to get Javascript to contact the Firebase server and send the message through the site itself, that is, through a function triggered from sending the form, to the app. Since I searched the Firebase documentation thoroughly, I still could not find another way to send notifications other than through the Firebase console.

I hope to be clear and thank you for the help!

    
asked by anonymous 20.06.2017 / 04:03

0 answers