共享直播间系统
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