@leonlee123/push-adapter

0.0.1 • Public • Published

Parse Server Push Adapter

Build Status Snyk Badge Coverage auto-release

Node Version

npm latest version


The official Push Notification adapter for Parse Server. See Parse Server Push Configuration for more details.


Silent Notifications

If you have migrated from parse.com and you are seeing situations where silent (newsstand-like presentless) notifications are failing to deliver please ensure that your payload is setting the content-available attribute to Int(1) and not "1" This value will be explicitly checked.

Logging

You can enable verbose logging with environment variables:

VERBOSE=1

or 

VERBOSE_PARSE_SERVER_PUSH_ADAPTER=1

This will produce a more verbose output for all the push sending attempts

Using a Custom Version on Parse Server

Install Push Adapter

npm install --save @parse/push-adapter@<VERSION>

Replace <VERSION> with the version you want to install.

Configure Parse Server

const PushAdapter = require('@parse/push-adapter').default;
const parseServerOptions = {
  push: {
    adapter: new PushAdapter({
      ios: {
        /* Apple push notification options */
      },
      android: {
        /* Android push options */
      }
      web: {
        /* Web push options */
      }
    })
  },
  /* Other Parse Server options */
}

/@leonlee123/push-adapter/

    Package Sidebar

    Install

    npm i @leonlee123/push-adapter

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    58.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • leonlee123