How do I check my applicationIconBadgeNumber value?

给你一囗甜甜゛ 提交于 2019-12-02 06:58:13

Based on our conversation in chat about this, you have three things you need to happen:

  1. You set up a notification to fire later with a badge number. But the notification will not automatically set the badge number.
  2. You have to handle the notification when it fires, check the badge number value and update your app's badge number explicitly
  3. You check the app badge number in your other view and show/hide the red dot.

I think you are doing #1 & #3 but not #2.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!