且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

触发/解析推送通知图标

更新时间:2023-02-26 21:06:07

我假定你的意思,你想改变应用程序图标徽章后,它已使用徽章数据被更改为解析推送通知的结果这里介绍他们的文档:
https://parse.com/docs/rest#push

I assume you mean that you would like to alter the app icon badge after it has been changed as a result of a Parse push notification using "badge" data as described here in their docs: https://parse.com/docs/rest#push

目前没有伪造API来做到这一点,但它是有道理的,我们把它添加到平台。我提出了一个票呢,当它准备将回到这里汇报工作。

Currently there is no Forge API to do this, but it makes sense for us to add this to the platform. I've raised a ticket for it and will report back here when it is ready.

至于现在解决方法,你可能引发新一轮推送通知,从你的应用程序中设置徽章值设置为空字符串 - 你必须创建每个独特的渠道安装到做到这一点。不理想,但它应该工作。

As a workaround for now, you could trigger another push notification setting the "badge" value to an empty string from within your app - you'd have to create a channel per unique install to do this. Not ideal, but it should work.