Skip to content

Latest commit

 

History

History
83 lines (64 loc) · 1.53 KB

README.md

File metadata and controls

83 lines (64 loc) · 1.53 KB

NodeJS APNs Server

Node.js CI

FEATURE

Install & Start

$ npm run test
  • ENV development (default PORT : 13000)
$ npm ci
$ npm run dev
or
$ npm ci
$ npm run dev-start
  • ENV production (default PORT : 80)
$ npm ci
$ npm run start
or
$ npm run deploy

Generate Push Certificate

  • export cert.cer in keychain access

Image Image

  • export key.p12 in keychain access

Image Image

  • generate cert.cer & key.p12 to .pem files
openssl x509 -in cert.cer -inform DER -outform PEM -out cert.pem
openssl pkcs12 -in key.p12 -out key.pem -nodes

Setting push certificate files

v2.0.0

  • upload push certificate files on sendpush webpage

WebPage - SEND Push

Image

  • input appID
  • input device token
  • select production (sandbox or production)
  • validate push contents json
// example push json format
{
  "aps": {
    "alert": {
      "body": "body",
      "title": "title",
      "subtitle": "subtitle"
    }
  }
}
  • WebPage

Image