设置 user_property 以使用 FCM 发送通知
Set user_property to send notification with FCM
我正在使用 Firebase 云消息传递,用于 PushNotification 服务。
在 Firebase 控制台中,我可以向特定的 user_property.
发送通知
FireBase Push Notification Console
但是我想从网络服务器发送它,如何在我的请求中设置user_property?
此选项目前仅在通过 Firebase 通知控制台发送消息时可用。
为了从您自己的服务器执行此操作,我能想到的唯一解决方法是,如果您为每个用户跟踪一个类似的 属性 并查询相应的令牌并相应地向他们发送消息。
我正在使用 Firebase 云消息传递,用于 PushNotification 服务。 在 Firebase 控制台中,我可以向特定的 user_property.
发送通知FireBase Push Notification Console
但是我想从网络服务器发送它,如何在我的请求中设置user_property?
此选项目前仅在通过 Firebase 通知控制台发送消息时可用。
为了从您自己的服务器执行此操作,我能想到的唯一解决方法是,如果您为每个用户跟踪一个类似的 属性 并查询相应的令牌并相应地向他们发送消息。