Skip to content

Commit

Permalink
Turn FCM notification into data message
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed May 9, 2024
1 parent 02df41a commit abd87c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async fn notify_fcm(
}

let url = "https://fcm.googleapis.com/v1/projects/delta-chat-fcm/messages:send";
let body = format!("{{\"message\":{{\"token\":\"{token}\",\"notification\":{{\"body\":\"You have new messages!\",\"title\":\"New messages\"}} }} }}");
let body = format!("{{\"message\":{{\"token\":\"{token}\",\"data\":{{ }} }} }}");
let res = client
.post(url)
.body(body.clone())
Expand Down

0 comments on commit abd87c8

Please sign in to comment.