Skip to content

Commit b4a2cfd

Browse files
committed
Added documentation for the ability to override the android notification tray behavoiur.
1 parent d3e7ce7 commit b4a2cfd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ Parse.Push plugin for Cordova/Phonegap/ionic. Works for both hosted Parse.com an
6161

6262
*Android*: to prevent flooding the notification tray, this plugin retains only the last PN with the same `title` field. For messages without the `title` field, the application name is used. A count of unopened PNs is shown.
6363

64+
You can override this feature, however, by adding the following to `config.xml`:
65+
66+
```xml
67+
<preference name="ParseMultiNotifications" value="true" />
68+
```
69+
6470

6571
#### Foreground vs. Background
6672

@@ -139,6 +145,10 @@ Create the following tags in `config.xml`:
139145
This is the same "senderId" to be used in your parse-server push configuration.
140146
-->
141147
<preference name="ParseGcmSenderId" value="gcm-sender-id" />
148+
149+
<!-- As standard, this plugin only shows the most recent PN in the android notifications tray along with a count of unopened PNs. If you would like to override this behaviour and show all PNs in the tray, then add this preference.
150+
If not, skip this preference-->
151+
<preference name="ParseMultiNotifications" value="true" />
142152
```
143153

144154
- For legacy Parse.com
@@ -149,6 +159,10 @@ Create the following tags in `config.xml`:
149159

150160
<!-- Do not replace this string value. It must be "PARSE_DOT_COM"-->
151161
<preference name="ParseServerUrl" value="PARSE_DOT_COM" />
162+
163+
<!-- As standard, this plugin only shows the most recent PN in the android notifications tray along with a count of unopened PNs. If you would like to override this behaviour and show all PNs in the tray, then add this preference.
164+
If not, skip this preference-->
165+
<preference name="ParseMultiNotifications" value="true" />
152166
```
153167

154168
You're all set. The plugin takes care of initializing Parse platform using the `config.xml` preferences mentioned above. It also saves your installation to the database automatically.

0 commit comments

Comments
 (0)