使用 firebase 问题推送通知(ios, swift 4)

push notification using firebase issue(ios, swift 4)

在使用 fire base 注册令牌和服务器 key.But 通过我的 php 服务器发送通知时没有获得推送通知数据 当我从 firebase.Anybody 发送通知时它有效 请帮助我

请注意,要在 iOS 中接收推送通知,有效负载格式应如下所示

 {
 "to" : "your token here",
 "notification" : {
 "body" : "great match!",
 "title" : "Portugal vs. Denmark"
 },
 "data" : {
 "body" : "great match!",
 "title" : "Portugal vs. Denmark"
 } 
}