React native Android:当应用程序使用react native firebase被杀死时,未收到通知

React native Android:当应用程序使用react native firebase被杀死时,未收到通知,react-native,react-native-firebase,React Native,React Native Firebase,我正在react native项目中使用react native firebase进行firebase云消息传递。当应用程序正在运行或处于后台/最小化状态时,它工作正常。但当手机重启后应用程序被关闭或未打开时,不会收到通知。 我将以下机构发送给 如果您使用的是react native firebase,您可以尝试在postman上使用此格式,或者通过点击此端点(),检查结构,不要忘记包含firebase密钥(AlzaXXXXXX) { "to": "/topics/chatProperty

我正在
react native
项目中使用
react native firebase
进行firebase云消息传递。当应用程序正在运行或处于后台/最小化状态时,它工作正常。但当手机重启后应用程序被关闭或未打开时,不会收到通知。 我将以下机构发送给

如果您使用的是react native firebase,您可以尝试在postman上使用此格式,或者通过点击此端点(),检查结构,不要忘记包含firebase密钥(AlzaXXXXXX)

{ 
 "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"
 }
}
"to":"your token",
"apn": {
    "content_available": "1"
},
"content_available": true,
"sound": "default",
"icon": "ic_launcher",
"priority": "high",
"notification": {
    "title": "Reminder Appointment",
    "body": "You have appointment today with Doctor ${detailData.doctor_name} on ${appTime}"
},
"data": {
    "id_appointment": "${detailData.book_id}",
    "id_doctor": "${detailData.doctor_email}",
    "id_patient": "${detailData.patient_email}",
    "speciality": "${detailData.speciality}",
    "speciality_id": "${detailData.speciality_id}"
}