我正在开发一个基于 wordpress 博客的 android 应用程序,用户可以在其中发布自己的文章,我使用 WP REST API 来获取帖子、评论和用户......
i am developping an android application based on a wordpress blog where users can post their own articles, i work with WP REST API to get posts , comments and users ...
我想在他的文章有新评论时自动向用户发送通知,我已经正确安装了 FCM 并测试了简单的通知形式,但我需要:
I would like to send a notification automatically to the user when his article got a new comment , i have installed FCM correctly and tested the simple forme of notifications but i need to :
我想到了
mFirebaseAnalytics.setUserProperty("user_name_for_notification", "the_username");
但我不认为这些是好主意
but i don't think those are good ideas
所以,任何想法从哪里开始
So , any ideas where to start
谢谢
FCM 可以通过三种不同的定位方法发送通知:
FCM can send notifications with three different targeting methods:
Firebase Cloud Messaging 没有用户的概念,因此不能直接针对用户.如果您想定位用户,您必须将他们映射到上面列出的定位方法之一.
Firebase Cloud Messaging does not have the concept of a user, therefor it cannot target users directly. If you want to target users, you will have to map them to one of the targeting methods outline above.
我所知道的最常见的方式:
The most common ways that I know of:
另见:
这篇关于给特定 wordpress 用户的 FCM 通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!