问题描述
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通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!