Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.79 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.79 KB

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>)