Skip to content

Commit

Permalink
Correcao notification_body p body
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulBSantos committed Jun 18, 2017
1 parent c920516 commit 51dca9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notification/firebase-notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ var message_content = {
function sendToApi(notification){
if(notification !== undefined){
console.log('Starting sendToApi. notification: ' + JSON.stringify(notification));
let notification_body = notification.getNotification();
let body = notification.getNotification();
// Configure the request
let options = {
url: "https://fcm.googleapis.com/fcm/send",
headers : headers,
json : true,
notification_body
body
}

// Dispara a requisição
Expand All @@ -59,7 +59,7 @@ function sendToApi(notification){
console.log(options);
console.log("Erro: "+error);
console.log("Resposta: "+response);
console.log("Show me your body: : "+notification_body);
console.log("Show me your body: : "+body);
});
}
}
Expand Down

0 comments on commit 51dca9e

Please sign in to comment.