Skip to content

NodeJS APNs(apple push notification service) Test Server

License

Notifications You must be signed in to change notification settings

tigi44/NodeJS_APNs_Server

Repository files navigation

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