[英]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.