Skip to content

ThatsOurJake/NotifyServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notify Server

A server for communicating with Firebase Messaging

Setup

Put the Firebase Messaging service credentials at the location of ./data/creds.json

Endpoints

/register-token allows the device to be registered to All Notifications topic Payload:

{
  "token": "firebase_client_token"
}

/unregister-token will un-register the device from the All Notifications topic Payload:

{
  "token": "firebase_client_token"
}

/send will send a notification to the All Notifications topic Payload:

{
  "title": "Title of the notification",
  "body": "Body of the notification",
  "colour": "Hex value of the colour of the notification icon, optional!"
}

Running

Mount the firebase creds to /NotifyServer/data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published