🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More
Socket
Book a DemoInstallSign in
Socket

@parse/push-adapter

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parse/push-adapter

Base parse-server-push-adapter

Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
60K
3.94%
Maintainers
5
Weekly downloads
 
Created
Source

parse-server-push-adapter

NPM Version codecov.io Build status

Official Push adapter for parse-server

See parse-server push configuration

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.

see more logs

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 the 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 pushOptions = {
  ios: { /* iOS push options */ } ,
  android: { /* android push options */ }   
}
// starting 3.0.0
const options = {
  appId: "****",
  masterKey: "****",
  push: {
    adapter: new PushAdapter(pushOptions),
  },
  /* ... */ 
}

const server = new ParseServer(options);

/* continue with the initialization of parse-server */

Want to ride the bleeding edge?

We recommend using the most recent tagged build published to npm for production. However, you can test not-yet-released versions of the parse-server-push-adapter by referencing specific branches in your package.json. For example, to use the master branch:

npm install parse-community/parse-server-push-adapter.git#master

Experimenting

You can also use your own forks, and work in progress branches by specifying them:

npm install github:myUsername/parse-server-push-adapter#my-awesome-feature

Keywords

parse-server

FAQs

Package last updated on 17 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts