Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
4.6

8.9.1
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- '4.6'
- '8.9.1'
after_success: "./node_modules/.bin/codecov"
deploy:
provider: npm
Expand Down
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,36 @@ 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

```js
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 */
```
Loading