2016-04-27 156 views
0

我实施了推送通知。除了始终显示“1”的徽章外,它的工作状况良好。推送通知徽章不会消失

我的代码如下所示:

var push = new Ionic.Push({ 
"debug": true 
}); 
push.register(function(token) { 
console.log("Device token:",token.token); 
//Here I make an http post to my server to store device token 
push.saveToken(token); // persist the token in the Ionic Platform 
}); 

的哪些错误?我试图谷歌“离子徽章删除”,但没有好的命中。只要你点击应用程序,我理解的徽章应该会消失。但它不(我在真正的iphone 6测试)。

回答

0

不知道您是否可以清除此类通知,我知道解决此问题的方式是使用Local Notification Plugin来处理您的推送通知。