【发布时间】:2021-02-21 19:21:27
【问题描述】:
我正在使用 Node.js 发送 Firebase 推送通知 (FCM Firebase Cloud Messaging),但我找不到禁用通知声音的方法。
Firebase 官方描述对此没有多大帮助 (Firebase Notification Sound)
我尝试了很多有效载荷组合,例如:
const payload = {
notification: {
title: 'title',
body: 'text',
sound: 'disable'
}
}
和
const payload = {
notification: {
title: 'title',
body: 'text',
sound: ''
}
}
但他们都没有沉默我的消息。 提前致谢!
【问题讨论】:
标签: node.js flutter google-cloud-functions firebase-cloud-messaging