Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Andriod :More than 2 notifications in status bar it is not works. #121

Closed
ramakrishna-nyros opened this issue Sep 10, 2015 · 5 comments
Closed

Comments

@ramakrishna-nyros
Copy link

Hi, I am using phonegap build to my app,I used this plugin successfully to send push notification . When I send more than 2 notifications with different notId ,I get the notifications in phone status bar,when click on first notification it opens app and show in a page . But when click on 2nd notification it opens app & show in a page and close all the notification in status bar.

How to solve this issue ?

Thanks in advance

@macdonst
Copy link
Member

@ramakrishna-nyros set options.android.clearNotifications to false on init.

@ramakrishna-nyros
Copy link
Author

@macdonst Thanks for the reply, As you specified I used in init function like below:

onDeviceReady: function() {
var push = PushNotification.init({
"android": {
"senderID": "88812375449",
'options.android.clearNotifications' : false
},
"ios": {},
"windows": {}
});
But no change , Same issue.The above code is correct ?

@macdonst
Copy link
Member

@ramakrishna-nyros No, it is not correct.

onDeviceReady: function() {
var push = PushNotification.init({
"android": {
"senderID": "88812375449",
"clearNotifications" : "false"
},
"ios": {}, 
"windows": {} 
});

@ramakrishna-nyros
Copy link
Author

Thanks Macdonst , It's working now.

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants