Skip to content

acperez/notification_server

 
 

Repository files navigation

Mozilla PUSH Notification server Build Status

Authors:

  • Andreas Gal (gal @ mozilla . com)
  • Fernando Rodríguez Sela (frsela @ tid . es)
  • Thinker Li (tlee @ mozilla . com)
  • Guillermo Lopez Leal (gll @ tid . es)

Introduction

The objective of this Push server is to reduce the battery comsuption & network traffic avoiding keep-alive messages. The server could be allocated inside the MNO private network with two network interfaces:

  • To connect with user handset
  • To connect from Internet

API for third party developers

Register device

-> GET https://NSurl/token
-> Open WebSocket to the same origin as above
-> Send registerUA message through that WS
<- 200 OK
-> RegisterWA
<- 200 OK || 4xx ERROR, reason

Send notification

-> POST https://publicURL/notify/APPtoken
    with a JSON
<- 200 OK || 4xx ERROR, reason

Receive notification:

<- (Through the WS): A JSON.

Documentation

It's on a wiki page, but that doesn't mean that it's updated. We are working on a document.

Requirements / Dependencies

Node.JS Modules (npm install <module>)

About

Push Notification Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Slash 73.4%
  • JavaScript 16.0%
  • XSLT 3.3%
  • Shell 2.7%
  • Java 2.2%
  • Python 1.9%
  • Other 0.5%