嗨,我希望从Android应用向特定客户端发送推送消息。到目前为止,从邮递员那里获得了成功。但是如何将帖子翻译为android应用?
我需要将帖子发送至:https://fcm.googleapis.com/fcm/send
这是示例消息:
{
"to" : "dLVCgODdwqw:APA91bHz3kb0kyhs0sdf8THHE0DsdfVtHM5Z",
"collapse_key" : "type_a",
"notification" : {
"body" : "Body",
"title": "Title"
},
"data" : {
"body" : "Body of Notification in Data",
"title": "Title of Notification in Title",
"key_1" : "Value for key_1",
"key_2" : "Value for key_2"
}
}