[英]Push notification badge not disappearing
I implemented push notification. 我实现了推送通知。 It works well apart from the badge that always shows "1".
除了始终显示“ 1”的徽章之外,它的效果都很好。
My code looks like this: 我的代码如下所示:
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
});
Whats wrong? 怎么了? I tried to google "ionic badge remove" but no good hits.
我试图用Google搜索“删除离子徽章”,但没有成功。 What I understood badge should disappear as soon as you click on the app.
我了解的徽章应在您点击该应用后立即消失。 But it doesn't (Im testing on a real iphone 6).
但事实并非如此(我正在真实的iPhone 6上进行测试)。
不确定是否可以清除此类通知,我知道解决此问题的方法是使用本地通知插件来处理您的推送通知。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.