Page 3 of 4

Reset Push Badge

Posted: Tue Jul 15, 2014 7:34 am
by Evgene Karachevtsev

Hello Marco,

Thank you for the update. Do not hesitate to contact us if you need any further help.


Reset Push Badge

Posted: Wed Sep 10, 2014 10:58 pm
by Mike6979865

This is not working, please help. I tried on Device Read run this javascript:

var pushNotification = window.plugins.pushNotification;
pushNotification.setApplicationIconBadgeNumber(function successHandler() {
// do something
} , 0);

It's not working. The icon badge is still there.


Reset Push Badge

Posted: Wed Sep 10, 2014 11:29 pm
by Illya Stepanov

Hi Mike,

Let us know if approach in this thread will be helpful: https://getsatisfaction.com/apperyio/...


Reset Push Badge

Posted: Wed Sep 10, 2014 11:43 pm
by Mike6979865

I tried the approach in the thread, and I put on the starting page the following code on device ready run javascript:

var successHandler = function(){
//just empty
};
var pushNotification = window.plugins.pushNotification;
pushNotification.setApplicationIconBadgeNumber(successHandler, 0);

I installed the app and uninstalled a few times, and I still see the number 5, and that's referring to the number of pushes that I sent. I'm hoping you have a solution.


Reset Push Badge

Posted: Wed Sep 10, 2014 11:49 pm
by Mike6979865

When I sent a push I specified badge #5 and that's why it shows 5... So then I sent another message with badge #1 and it shows 1. How can I remove this number?


Reset Push Badge

Posted: Wed Sep 10, 2014 11:51 pm
by Mike6979865

Resolved. I specified 0, thanks.


Reset Push Badge

Posted: Thu Sep 11, 2014 12:25 am
by Illya Stepanov

Thank's for the update, Mike. Glad to hear things are all sorted out now!


Reset Push Badge

Posted: Thu Dec 04, 2014 3:56 am
by Carlos Castillo6909856

Hi I have tried this code on 2.1 library

PushNotification.setApplicationIconbadgenumber(0, function(){});

But Im not able to clear the Badge

Any idea???


Reset Push Badge

Posted: Thu Dec 04, 2014 11:24 pm
by Yurii Orishchuk

Hi Carlos,

Please use following code on "device ready" event handler:

pre

var successHandler = function(){
//just empty
};
var pushNotification = window.plugins.pushNotification;
pushNotification.setApplicationIconBadgeNumber(1000, successHandler);

/pre

Regards.


Reset Push Badge

Posted: Fri Dec 05, 2014 5:12 pm
by Carlos Castillo6909856

Hi Yurii

Unfortunally it did not worked

Just for you to know

I ́m under 2.1 libraries
Im sending notifications true channel query from a REST service coming from WP
And on an iPad mini it does reset the bubble

Please help other wise I will need to cancel the badge service and, its definitely a key facto on my projects

Best

Carlos