<small id='CloAX'></small><noframes id='CloAX'>

  • <tfoot id='CloAX'></tfoot>

    <i id='CloAX'><tr id='CloAX'><dt id='CloAX'><q id='CloAX'><span id='CloAX'><b id='CloAX'><form id='CloAX'><ins id='CloAX'></ins><ul id='CloAX'></ul><sub id='CloAX'></sub></form><legend id='CloAX'></legend><bdo id='CloAX'><pre id='CloAX'><center id='CloAX'></center></pre></bdo></b><th id='CloAX'></th></span></q></dt></tr></i><div id='CloAX'><tfoot id='CloAX'></tfoot><dl id='CloAX'><fieldset id='CloAX'></fieldset></dl></div>
      <bdo id='CloAX'></bdo><ul id='CloAX'></ul>
    1. <legend id='CloAX'><style id='CloAX'><dir id='CloAX'><q id='CloAX'></q></dir></style></legend>

        仅向 Firebase 中的一位用户发送通知

        Send notification to only one user in firebase(仅向 Firebase 中的一位用户发送通知)
        <legend id='hg7XU'><style id='hg7XU'><dir id='hg7XU'><q id='hg7XU'></q></dir></style></legend>
        <i id='hg7XU'><tr id='hg7XU'><dt id='hg7XU'><q id='hg7XU'><span id='hg7XU'><b id='hg7XU'><form id='hg7XU'><ins id='hg7XU'></ins><ul id='hg7XU'></ul><sub id='hg7XU'></sub></form><legend id='hg7XU'></legend><bdo id='hg7XU'><pre id='hg7XU'><center id='hg7XU'></center></pre></bdo></b><th id='hg7XU'></th></span></q></dt></tr></i><div id='hg7XU'><tfoot id='hg7XU'></tfoot><dl id='hg7XU'><fieldset id='hg7XU'></fieldset></dl></div>
          <tfoot id='hg7XU'></tfoot>
            <tbody id='hg7XU'></tbody>
            <bdo id='hg7XU'></bdo><ul id='hg7XU'></ul>

            • <small id='hg7XU'></small><noframes id='hg7XU'>

                • 本文介绍了仅向 Firebase 中的一位用户发送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个 android 应用程序,我想在数据更改时只向一位用户发送通知.我怎样才能做到这一点.谁能提供一个代码片段,我可以放入 OnDataChange() 方法以向特定用户发送通知.由于在 Firebase 中,身份验证后将为每个用户创建一个唯一的用户 ID,有没有办法将通知发送给特定用户或仅发送给使用该用户 ID 的一组用户.

                  I have an android app and I want to send notifications to only one user when data is change. How can I do that. Could anyone give a code snippet that I can put in OnDataChange() Method to send notification to a specific user. Since In Firebase there will be an unique user id created to every user after authentication, Is there any way to send the notification to a particular user or only to a group of Users using that userid.

                  推荐答案

                  您可以为该用户创建主题并订阅该主题,然后 Firebase 允许我们使用主题消息向特定主题发送消息.请看这个链接

                  You can make topic for this user and subscribe to that topic then Firebase allow us to send message to specific topic using topic message. Kindly Look at this link

                  https://firebase.google.com/docs/cloud-消息传递/android/topic-messaging

                  还有这个

                  如何使用 FCM 向特定用户发送通知?

                  希望它会有所帮助.

                  这篇关于仅向 Firebase 中的一位用户发送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  When does a FCM token expire?(FCM 令牌何时到期?)
                  Firebase Cloud Messaging (FCM) - Launch Activity when user clicks the notification with extras(Firebase Cloud Messaging (FCM) - 当用户点击带有附加功能的通知时启动活动)
                  Implement Firebase inside of a Library(在库中实现 Firebase)
                  Firebase Backward compatibility with GCM(Firebase 与 GCM 的向后兼容性)
                  Receiving the FCM notifications multiple times on Nougat(在 Nougat 上多次接收 FCM 通知)
                  Push Notifications are delivered but didReceiveRemoteNotification is never called Swift(推送通知已交付,但 didReceiveRemoteNotification 从未被称为 Swift)
                • <i id='txS0i'><tr id='txS0i'><dt id='txS0i'><q id='txS0i'><span id='txS0i'><b id='txS0i'><form id='txS0i'><ins id='txS0i'></ins><ul id='txS0i'></ul><sub id='txS0i'></sub></form><legend id='txS0i'></legend><bdo id='txS0i'><pre id='txS0i'><center id='txS0i'></center></pre></bdo></b><th id='txS0i'></th></span></q></dt></tr></i><div id='txS0i'><tfoot id='txS0i'></tfoot><dl id='txS0i'><fieldset id='txS0i'></fieldset></dl></div>

                  <tfoot id='txS0i'></tfoot>

                      <tbody id='txS0i'></tbody>
                      <bdo id='txS0i'></bdo><ul id='txS0i'></ul>
                        <legend id='txS0i'><style id='txS0i'><dir id='txS0i'><q id='txS0i'></q></dir></style></legend>

                            <small id='txS0i'></small><noframes id='txS0i'>