我在 react-native
项目中使用 react-native-firebase
进行Firebase Cloud 消息传递 . 当应用程序正在运行或在后台/最小化时,它正常工作 . 但移动重启后应用程序被杀或未打开时未收到通知 . 我发送以下遗体给
https://fcm.googleapis.com/fcm/send
{
"to": "/topics/chatProperty_P00025_14",
"notification" : {
"body" : "great match!",
"content_available" : true,
"priority" : "high",
"title" : "Portugal vs. Denmark",
"sound":"default",
"vibrate":true
},
"data" : {
"body" : "14_P00025",
"content_available" : true,
"priority" : "high",
"title" : "Portugal vs. Denmark",
"type" : "propertyAdd",
"sound":"default",
"vibrate":true,
"propertyId":"1"
}
}