我们如何确保显示待处理通知的徽章在 MobileFirst Platform 7.1 上归零?

How can we ensure the badge showing pending notifications is zero-ed on MobileFirst Platform 7.1?

我正在与一位在 MobileFirst Platform 7.1 上开发混合应用程序的客户合作。当他们向 iOS 平台发送通知时,它们会被成功接收和处理(即触发分配给 WL.Client.Push.onMessage() 的功能)。但是,iOS "badge"(主屏幕上待处理消息的计数)永远不会减少 - 它只会随着时间的推移而增加。我们如何确保通知被消费时是decremented/zeroed?是否有我们需要调用的回调function/API?

您必须实施 WL.Badge API: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.apiref.doc/html/refjavascript-client/html/WL.Badge.html?lang=en

徽章需自行处理...