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