In this simple repo you will learn how to use most of the feautures in Firebase Functions
- User registration listener
- Database nodes listener
- Query other nodes
- Set value to other nodes
- Send Firebase Cloud Message notifications
I hope to help you to solve the most common simple problems while developing applications: business logic and push notifications
- You have to do the Firebase Functions Get Started or simply watch the 8 minutes video
- The first step should teach you how to create a Functions Project, do it and then replace the content of the original index.js for the provided here
- Don't forget to deploy to your project
- If you wish to see the notification you can use this Android Project
- For using Functions add
console.log
everywhere, one step, one log - For testing the notification use a real device, emulators are not realiable with notifications
I'm not and Javascript developer, so please excuse my clumsy code, any question or suggestion please feel free to contact me and off course, PR are welcome :)