Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (22 loc) · 1.54 KB

File metadata and controls

30 lines (22 loc) · 1.54 KB

DAW-Firebase-Project

This repository contains an example using Firebase Realtime Database and Firebase Cloud Messaging that I will use in my theorical project of DAW (Diseño de Aplicaciones Web).

In order to make it work, you have to:

  1. Clone the repository
  2. Set your own variable and keys in the next files:
  3. Set the Firebase Security Rules of the Database to 'true':
{   
"rules": {
    ".read": "true",
    ".write": "true"
  }
}
  1. At this point, you will be able to receive Push notifications and to use the HTML form to send JSON Objets to the Realtime database.

You can use the Firebase Console to send Push notifications, but also you can use the cURL command that are in /res/notifications.txt to send a Push notification to a specific user or to a specific topic (remember to set your server key).

Interface

Figure 1 - Interface

Push Notification

Figure 2 - Push Notification received