歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> Parse Server 支持 iOS 和Android的消息推送

Parse Server 支持 iOS 和Android的消息推送

日期:2017/3/1 9:18:46   编辑:Linux編程

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

Copyright © Linux教程網 All Rights Reserved