2017-06-14 108 views
0

我在火力新希望顯示在通過火力雲消息,但問題的瀏覽器通知使用火力雲消息是,我搞不清在哪裏寫的代碼::如何通過網絡

POST /fcm/send HTTP/1.1 
Host: fcm.googleapis.com 
Content-Type: application/json 
Authorization: key=YOUR_SERVER_KEY 

{ 
    "notification": { 
    "title": "New chat message!", 
    "body": "There is a new message in FriendlyChat", 
    "icon": "/images/profile_placeholder.png", 
    "click_action": "http://localhost:5000" 
    }, 
    "to":"YOUR_DEVICE_TOKEN" 
} 

請告訴我在哪個文件中,我將不得不寫這個代碼。

任何幫助將不勝感激。

回答