Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Reset Push Badge

Hello Marco,

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

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Reset Push Badge

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Reset Push Badge

Hi Mike,

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

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Reset Push Badge

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.

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Reset Push Badge

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?

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Reset Push Badge

Resolved. I specified 0, thanks.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Reset Push Badge

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

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Reset Push Badge

Hi I have tried this code on 2.1 library

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

But Im not able to clear the Badge

Any idea???

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Reset Push Badge

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.

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Reset Push Badge

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

Return to “Issues”