我目前在Amazon AWS Elastic Beanstalk上运行Parse Server 2.2.18。我正在尝试使用Cloud Code将afterSave函数的推送通知发送到特定频道。但是,即使这些通知成功,这些通知也无法访问任何设备。
这是我的MongoDB数据库中Parse生成的_PushStatus条目......
{
"_id": "eEaI2eReAi",
"pushTime": "2016-09-06T18:29:01.172Z",
"_created_at": {
"$date": "2016-09-06T18:29:01.172Z"
},
"query": "{\"channels\":{\"$in\":[\"E22\"]}}",
"payload": "{\"alert\":\"Test Group - Aye.\",\"e\":\"e\",\"badge\":\"Increment\"}",
"source": "rest",
"status": "pending",
"numSent": 0,
"pushHash": "675bcfb564807cdfc24085528c2cac39",
"_wperm": [],
"_rperm": []
}
通过Parse.com仪表板上的Web UI正确发送推送通知,只需按一下按钮即可定位特定受众。问题出在我托管的Parse Server中,它与APNS交谈。我已经正确配置了推送证书并使用本地.p12文件和应用程序包初始化了我的Node.js解析服务器。
非常感谢任何支持。
-
规格:
运行Mongo 3.0.12的共享MongoDB集群。
在AWS EB上运行2.2.18的解析服务器。