触发/解析推送通知图标 [英] Trigger / Parse Push notification icon
问题描述
你如何定义一个Trigger.io应用程序推送通知图标?
How do you customize the push notification icon on a Trigger.io app?
我目前正在测试Android上。
I am currently testing on Android.
推荐答案
我假定你的意思,你想改变应用程序图标徽章后,它已使用徽章数据被更改为解析推送通知的结果这里介绍他们的文档:
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.
这篇关于触发/解析推送通知图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!