问题
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?
回答1:
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.
Regards.
来源:https://stackoverflow.com/questions/27511095/parse-com-send-auto-push-notification-on-new-data