Trigger / Parse Push notification icon

℡╲_俬逩灬. 提交于 2020-01-15 07:42:25

问题


How do you customize the push notification icon on a Trigger.io app?

I am currently testing on Android.


回答1:


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

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.



来源:https://stackoverflow.com/questions/12296571/trigger-parse-push-notification-icon

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