Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / 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本文永久更新链接地址:http://www.linuxidc.com/Linux/2016-02/128271.htm