2016-01-21 105 views
0

我正在尝试使用Parse.com API。 我想通过 使用objectId_Installation向特定设备发送推送通知。Parse.com - 从安装发送带有objectId的推送通知作为参数

这是我送我的POST参数:

{ 
    "data": 
    { 
     "alert":"Message to send" 
    }, 
    "where": 
    { 
     "user": 
     { 
      "__type":"Pointer", 
      "className":"_Installation", 
      "objectId":"GfdbNwJhr6" 
     } 
    } 
} 

响应返回:

{ 
    "result": true 
} 

但是我没有得到我的设备上的任何通知...

我也试过改变"user":"_type""installation":"_type"

还不行......

+0

你为什么不使用的通道? – Wain

回答

0

NVM,找到了解决办法:

{ 
     "data": 
      { 
       "alert": "321213", "sound": "", "badge": "Increment" 
      }, 
     "where": 
      { 
       "objectId": "GfdbNwJhr6" 
      } 
    }