简体   繁体   English

解析中的自定义Webhook是否可以将推送通知发送到ios应用?

[英]Can custom webhook in Parse send push notification to ios app?

I am working with an api which has a webhook with a callback url, such that when a certain event occurs, it uses an HTTP POST request with whatever URL I want. 我正在使用具有带回调URL的Webhook的api,这样,当发生某个事件时,它将使用HTTP POST请求以及所需的任何URL。 Can a Parse webhook be used, such that the POST request URL can talk to Parse and tell it to send a push notification to a particular iOS device? 是否可以使用Parse Webhook,以便POST请求URL可以与Parse对话并告诉它向特定的iOS设备发送推送通知?

Yes, absolutely. 是的,一点没错。 You can define a custom route that accepts POST data and then sends push (or does any other Parse functions.) 您可以定义一个自定义路由,该路由接受POST数据,然后发送push(或执行其他任何Parse函数)。

Custom Webhooks on Parse Cloud Code: https://parse.com/docs/cloud_code_guide#webhooks 解析云代码上的自定义Webhooks: https ://parse.com/docs/cloud_code_guide#webhooks

Full Cloud Code guide: https://parse.com/docs/cloud_code_guide#cloud_code 完整的云代码指南: https : //parse.com/docs/cloud_code_guide#cloud_code

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM