我正在通过Postman向已安装应用程序的手机发送FCM推送通知。我已启用推送通知,该应用程序在后台运行,并且我拥有有效的(已确认)Firebase推送令牌。我正在使用以下标题(Authorization: key=APP_SERVER_KEY, Content-Type: application/json)POST到https://fcm.googleapis.com/fcm/send,我的主体如下:
{ "notification": {
"title": "Portugal vs. Denmark",
"text": "5 to 1"
},
"to": MY_PUSH_TOKEN
}
我收到了以下带有正文的200 OK响应:
{
"multicast_id": MULTICAST_ID,
"success": 1,
"failure": 0,
"canonical_ids": 0,
"results": [{
"message_id": "0:MESSAGE_ID"
}]
}
一切看起来都很正常,但是我没有在手机上收到通知?我该如何进行故障排除,有人知道我漏掉了什么吗?