Dispatch Remote Push Notification Packages [Core <- Server | DesktopApp]
Clone or download
Latest commit 05931f6 Jan 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages forgot to commit js Jan 10, 2019
.gitignore ⚡️ WIP Dec 18, 2018
.prettierrc 🌲 Update Dec 19, 2018
.yarnrc 🌲 Update Dec 19, 2018
README.md fix: single quote not closed Jan 9, 2019
lerna.json 🌲 Update Dec 19, 2018
package-lock.json add package-lock.json Jan 10, 2019
package.json 🌲 Update Dec 19, 2018
yarn.lock 🌲 Update Dec 19, 2018

README.md

PushServer

Development

  • Core(Library)
    • Server(Application)
    • Desktop(Application)
lerna bootstrap

Usage

// TODO:

Before launching server, we need to set env-var.

export __P8_FILE_PATH=
export __KEY_ID=
export __TEAM_ID=
export __IS_PRODUCTION=true or false

And then, build server application and launch.

cd packages/server
yarn run dev

Finally, send a request.

curl -X POST \
  http://localhost:9000/send \
  -H 'Content-Type: application/json' \
  -H 'X-target-device-token: <#TARGET DEVICE TOKEN#>' \
  -H 'x-topic: <#TARGET APP BUNDLE ID#>' \
  -d '{
  "aps" : {
    "badge" : 0,
    "alert" : "Hello"
  }
}'