Parse Server 支持 iOS 和Android的消息推送
Parse Server 是前些天 Facebook 刚刚开源的兼容 Parse.com API 的服务器软件。目前该项目宣布支持 iOS 和 Android 平台的消息推送。可通过 PushAdapter 来实现。
使用方式:
curl -X POST \
-H “X-Parse-Application-Id: YOUR_APP_ID” \
-H “X-Parse-Master-Key: YOUR_MASTER_KEY” \
-H “Content-Type: application/json” \
-d ‘{
“where”: {
“deviceType”: {
“$in”: [
“ios”
]
},
“fan”: “Giants”
},
“data”: {
“title”: “A special discount for Giants fans”,
“alert”: “Check out our app for a 15% discount!”
}
}’\ http://www.myawesomeparseserver.com/parse/push
相关推荐
jasonwuuu 2014-12-12
huangxiaoyu 2015-01-28
lvchao 2013-12-31
liuwentao 2013-06-17
qixiang0 2013-05-04
qianchunqiang 2012-01-08
惠秀宝 2014-05-18
suweierxing 2013-05-17