简体   繁体   English

向Firebase云消息传递通知添加操作

[英]Adding actions to firebase cloud messaging notification

How to add Actions (button bellows the notification) for a Web application. 如何为Web应用程序添加操作(按钮将显示通知)。

I tried to add actions to firebase-messaging-sw.js, But nothing changed. 我尝试将操作添加到firebase-messaging-sw.js,但没有任何变化。

You'll have to add the actions to a notification created in onBackgroundMessage() callback. 您必须将操作添加到在onBackgroundMessage()回调中创建的通知中。

Can you provide example code of what you've tried so far? 您能否提供到目前为止已尝试过的示例代码?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Firebase云消息发送通知 - sending notification with firebase cloud messaging Firebase 云消息前台通知在 Vue 中不起作用 - Firebase Cloud Messaging foreground notification not working in Vue 单击通知后如何访问通知数据(firebase 云消息传递) - How to access notification data after clicking on notification (firebase cloud messaging) Firebase 云消息传递:通知图标背景仅在第二次尝试时有效 - Firebase Cloud Messaging: Notification Icon Background is only working on second attempt 如何从 javascript 发送 firebase 云消息通知? - How can I send a firebase cloud messaging notification from javascript? Firebase Cloud Messaging,用于将通知发送到所有无法使用的已注册设备 - Firebase Cloud Messaging for sending notification to all the registered devices not working 向所有Firebase云消息传递令牌(Web)发送通知 - Send Notification To All Firebase Cloud Messaging Tokens (Web) 自定义在后台处理程序中运行的Firebase云消息传递的通知 - Customize notification from firebase cloud messaging running in background handler 如何通过 NodeJs 使用 Azure、firebase 云消息推送 android 通知 - How to push android notification using Azure, firebase cloud messaging by NodeJs VueJS Firebase云消息传递 - VueJS Firebase cloud messaging
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM