Skip to content

Commit cdcd186

Browse files
authored
docs: Minor refactor in README (#223)
1 parent 7aaab38 commit cdcd186

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

README.md

+12-18
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ The official Push Notification adapter for Parse Server. See [Parse Server Push
1919
- [Install Push Adapter](#install-push-adapter)
2020
- [Configure Parse Server](#configure-parse-server)
2121

22-
23-
2422
# Silent Notifications
2523

2624
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.
@@ -44,30 +42,26 @@ This will produce a more verbose output for all the push sending attempts
4442
## Install Push Adapter
4543

4644
```
47-
npm install --save @parse/push-adapter@VERSION
45+
npm install --save @parse/push-adapter@<VERSION>
4846
```
4947

50-
Replace VERSION with the version you want to install.
48+
Replace `<VERSION>` with the version you want to install.
5149

5250
## Configure Parse Server
5351

5452
```js
5553
const PushAdapter = require('@parse/push-adapter').default;
56-
const pushOptions = {
57-
ios: { /* iOS push options */ } ,
58-
android: { /* android push options */ }
59-
}
60-
// starting 3.0.0
61-
const options = {
62-
appId: "****",
63-
masterKey: "****",
54+
const parseServerOptions = {
6455
push: {
65-
adapter: new PushAdapter(pushOptions),
56+
adapter: new PushAdapter({
57+
ios: {
58+
/* Apple push notification options */
59+
},
60+
android: {
61+
/* Android push options */
62+
}
63+
})
6664
},
67-
/* ... */
65+
/* Other Parse Server options */
6866
}
69-
70-
const server = new ParseServer(options);
71-
72-
/* continue with the initialization of parse-server */
7367
```

0 commit comments

Comments
 (0)