Parse.com发送有关新数据的自动推送通知 [英] Parse.com Send auto push notification on new data

查看:78
本文介绍了Parse.com发送有关新数据的自动推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以同步解析数据的应用程序. 我有一个类和对象. 当我添加新数据(行)时,我需要该解析将自动推送通知发送给已安装该应用程序的所有设备. 我尝试阅读该文档,但无法阅读,但可以弄清楚该怎么做. 有帮助吗?

I have an App that synch data from parse. I have a class and object. When i added new data (row) i need that parse send auto push notification to all device that have the app installed. I try to read the doc but not but can figure out how to do it. Any help?

推荐答案

据我的理解,您希望在插入新行时向所有设备发送推送通知.为此,您可以使用解析云"功能并在插入新行时触发此功能.另一种方式(您的解释尚不清楚),您可以使用Parse Cloud afterSave函数.当在类中插入新行时,Parse将触发afterSave函数.因此,您可以在afterSave函数中发送推送通知.希望这会有所帮助.

As far as I understand from your explanation, you want to send push notification to all device when a new row is inserted. To do this, you can use Parse Cloud function and trigger this function when a new row is inserted. Another way (it is not clear from your explanation), you can use Parse Cloud afterSave function. When a new row is inserted to a class, afterSave function is triggered by Parse. So you can send Push notification in afterSave function. Hope this helps.

致谢.

这篇关于Parse.com发送有关新数据的自动推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆