我已解析了一段時間,它工作正常。現在我面臨發送推送通知的問題。這我已經完成不能發送解析推送通知
curl -X POST \
-H "X-Parse-Application-Id: application id" \
-H "X-Parse-REST-API-Key: REST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channels":[''],
"data": {
"alert": "The Giants won against the Mets 2-3."
}
}' \
https://api.parse.com/1/push
我打算髮送廣播消息。但在解析控制檯它顯示
Targeting :
channels includes any of , or nil
deviceType is any of "android", "winphone", or "js"
Sending date :
November 26th, 2013 at 4:32 PM
Expiration :
None
Full target :
{ "channels": { "$in": [ ] }, "deviceType": { "$in": [ "android", "winphone", "js" ] } }
Full data :
{ "alert": "The Giants won against the Mets 2-3." }
蔭無法從哪裏是關鍵「在$」是被指定爲全目標人物? 使用解析控制檯發送推送工作正常。
如何解決?
感謝您的回答。好的,因此'$ in'的意思是,沒有意識到它,我已經解決了這個問題,這是造成這個問題的單引號。用雙引號取代並得到了這個東西。乾杯...!!!!! – PRASANTH
或者你可以做一個\ $並保留相同的引號;) – foxybagga