[英]React Native AppCenter Push - Notifications when app is in background
我正在使用React Native Microsoft AppCenter
,它利用Firebase Cloud Messaging
开发了Android应用程序。
Notification
。 我必须打开托盘才能看到通知。 任何帮助将不胜感激
所以我确实找到了答案。 万一这是别人绊倒的事情...
您需要在自定义数据中添加“声音”键和“默认”值。
"notification_content": {
"name": "Some Name",
"title": "Some Title",
"body": "Some...body",
"custom_data": { "sound": "default" }
},
"notification_target": {
"type": "devices_target",
"devices": ["Some device ID"]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.