Parse Rest API - 使用高级目标错误推送通知

sep*_*err 3 push-notification ios parse-platform

我在Parse的论坛上问过这个问题,但是在14个小时内没有收到回复,所以无论如何我都回到了我的第一选择,好吧.

我正在测试使用查询发送推送通知.我很确定我在查询中使用了正确的安装ID.但推送没有被发送到我的设备.也许语法有问题?

curl -X POST \
  -H "X-Parse-Application-Id: xxx" \
  -H "X-Parse-REST-API-Key: yyy" \
  -H "Content-Type: application/json" \
  -d '{"where":{"id":{"in":["8e40a0b9-edef-442b-ad1a-3b5eb8c7fd8b"]}},"data":{"alert":"d"}}'\
  https://api.parse.com/1/push
Run Code Online (Sandbox Code Playgroud)

给出了回复:

{"result":true}
Run Code Online (Sandbox Code Playgroud)

但是没有发送通知.在Parse的仪表板上,我看到以下内容: 在此输入图像描述

在此输入图像描述

这里有Parse API经验的人知道我的查询或请求可能有什么问题吗?此外,如果有人对此有意见,请告诉我:如果有100个需要通知的安装ID,您是否看到使用上述查询的任何潜在问题?

sep*_*err 7

找到了解决方案.我的查询有两个问题:首先我使用的是in代替$in.其次,我的约束是id,它需要installationId.以下工作:

curl -X POST \
  -H "X-Parse-Application-Id: xxx" \
  -H "X-Parse-REST-API-Key: yyy" \
  -H "Content-Type: application/json" \
  -d '{"where":{"installationId":{"$in":["8e40a0b9-edef-442b-ad1a-3b5eb8c7fd8b"]}},"data":{"alert":"d"}}'\
  https://api.parse.com/1/push
Run Code Online (Sandbox Code Playgroud)