HTTP v1 API:"click_action"用于webpush通知 [英] HTTP v1 API: "click_action" for webpush notification

查看:94
本文介绍了HTTP v1 API:"click_action"用于webpush通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

FCM中的文档主要集中在Android/iOS上,而我低调的webpush自我正为click_action苦苦挣扎.

Documentation in FCM focuses heavily on Android/iOS and my lowly webpush self is struggling with click_action.

click_action是可以在较旧的API中使用的密钥,并且似乎不再可用于webpush.

click_action was a key which could be used in older APIs and appears to be no longer available for webpush.

对此的唯一具体引用是在此博客文章中: https://firebase.googleblog.com/2017/11/whats-new-with-fcm-customizing-messages.html ,该版本再次着重于iOS和Android.

The only specific reference to this is in this blog post: https://firebase.googleblog.com/2017/11/whats-new-with-fcm-customizing-messages.html which again focuses on iOS and Android.

我想澄清的是,webpush消息现在确实不支持click_action.

I am looking for clarity that click_action is indeed now unsupported for webpush messages.

推荐答案

Click_action对我有用,但我认为它尚未被记录.

Click_action works for me but I think it is not documented yet.

我在webpush->通知-> click_action中添加了它.

I added it in webpush -> notification -> click_action.

HTTP v1 API中提供了一个新选项.

Edit : a new option is available in HTTP v1 API.

这篇关于HTTP v1 API:"click_action"用于webpush通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆