用于网络推送通知

用于网络推送通知

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

问题描述

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.

我正在寻求澄清 click_action 现在确实不支持 webpush 消息.

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

07-24 15:35