simple-push-server

0.3.2 • Public • Published

simple-push-server

A simple web server that sends push notification to apps/web etc, using the node-pushnotification library.

So can send pushes by posting to the server like this:

curl -v http://localhost:8000/send-message -d '{"sender":"testing", "registrationIds":["b2d0e95bfce054a3d220da12280cfdbb15274a1a9e5a02e5618c72b6ee32d0e2b"], "data":{"topic":"com.whatever.test","custom":{"mydata":"12341234","anotherdata":"abcd"},"aps":{"alert":"hello"}}}' -H "Content-Type: application/json"

Install

npm install
npm run start

Configuration

Configure the push accounts in the Settings.js and .dev file.

See the node-pushnotification library page for the data/settings options.

Readme

Keywords

none

Package Sidebar

Install

npm i simple-push-server

Weekly Downloads

4

Version

0.3.2

License

none

Unpacked Size

7.78 kB

Total Files

9

Last publish

Collaborators

  • xuan9