FCM推送通知不能通过REST工作,但可以在FCM控制台上运行

时间:2016-06-03 06:00:44

标签: json curl google-cloud-messaging apple-push-notifications firebase-cloud-messaging

我的卷曲请求如下:

curl -i -H "Authorization: key=YOUR_KEY" -H "Content-Type: application/json" -d @nt.json https://fcm.googleapis.com/fcm/send

nt.json的内容:

{"to":"fS8pdgESa5A:APA91bHt8MO6_byOvVqC__721JnazpdvHx2XxJSP3_xC5BN2Lxhd0ZV91ozAxTCa3lW2kIRObkVlNmEFuz9OlHW1WA_NB6_6WEIWL0L5NiDiuxkFuXP6qpazjyfR2DMkQJ3Zu1B5t0uq","notification":{"title":"hi4","body":"hi4body"}}

0 个答案:

没有答案