<i id='TE1yc'><tr id='TE1yc'><dt id='TE1yc'><q id='TE1yc'><span id='TE1yc'><b id='TE1yc'><form id='TE1yc'><ins id='TE1yc'></ins><ul id='TE1yc'></ul><sub id='TE1yc'></sub></form><legend id='TE1yc'></legend><bdo id='TE1yc'><pre id='TE1yc'><center id='TE1yc'></center></pre></bdo></b><th id='TE1yc'></th></span></q></dt></tr></i><div id='TE1yc'><tfoot id='TE1yc'></tfoot><dl id='TE1yc'><fieldset id='TE1yc'></fieldset></dl></div>
      <bdo id='TE1yc'></bdo><ul id='TE1yc'></ul>
  • <small id='TE1yc'></small><noframes id='TE1yc'>

  • <legend id='TE1yc'><style id='TE1yc'><dir id='TE1yc'><q id='TE1yc'></q></dir></style></legend>
        <tfoot id='TE1yc'></tfoot>

        FCM 在使用 PHP 发送推送通知之前验证设备令牌

        FCM verify device token before sending push notification using PHP(FCM 在使用 PHP 发送推送通知之前验证设备令牌)
          <bdo id='v9Ogq'></bdo><ul id='v9Ogq'></ul>

          <i id='v9Ogq'><tr id='v9Ogq'><dt id='v9Ogq'><q id='v9Ogq'><span id='v9Ogq'><b id='v9Ogq'><form id='v9Ogq'><ins id='v9Ogq'></ins><ul id='v9Ogq'></ul><sub id='v9Ogq'></sub></form><legend id='v9Ogq'></legend><bdo id='v9Ogq'><pre id='v9Ogq'><center id='v9Ogq'></center></pre></bdo></b><th id='v9Ogq'></th></span></q></dt></tr></i><div id='v9Ogq'><tfoot id='v9Ogq'></tfoot><dl id='v9Ogq'><fieldset id='v9Ogq'></fieldset></dl></div>
        • <small id='v9Ogq'></small><noframes id='v9Ogq'>

            <tbody id='v9Ogq'></tbody>
            <legend id='v9Ogq'><style id='v9Ogq'><dir id='v9Ogq'><q id='v9Ogq'></q></dir></style></legend>

                  <tfoot id='v9Ogq'></tfoot>
                1. 本文介绍了FCM 在使用 PHP 发送推送通知之前验证设备令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的数据库中有 fcm 令牌,并且某些令牌用于发送推送通知.

                  I have fcm tokens in my database and for some tokens are used to send push notifications.

                  一切都按要求正常工作.但是由于我得到了一些设备令牌,因此需要进行优化

                  Everything is working fine as required. But there is optimization required since some device token I am getting

                  string(116)
                  "{
                  "multicast_id": 1234,
                  "success": 0,
                  "failure": 1,
                  "canonical_ids": 0,
                  "results": [{
                    "error": "NotRegistered"
                  }]
                  }
                  "
                  

                  如果在发送推送通知之前已经注册,可以帮助我验证设备令牌吗?

                  Could any help me verify device token if registered already before sending push notification?

                  推荐答案

                  您可以使用 实例 ID 服务器参考 GET API.如果您收到类似下面的响应,则表示该令牌仍然有效.

                  You can verify if a token in your database is still valid or not using the Instance ID Server Reference GET API. If you got a response similar to below, it means that the token is still valid.

                  GET 请求示例:

                  https://iid.googleapis.com/iid/info/nKctODamlM4:CKrh_PC8kIb7O...clJONHoA?details=true
                  Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
                  

                  示例结果

                  HTTP 200 OK
                  {
                    "application":"com.iid.example",
                    "authorizedEntity":"123456782354",
                    "platform":"Android",
                    "attestStatus":"ROOTED",
                    "appSigner":"1a2bc3d4e5",
                    "connectionType":"WIFI",
                    "connectDate":"2015-05-12
                    "rel":{
                      "topics":{
                        "topicname1":{"addDate":"2015-07-30"},
                        "topicname2":{"addDate":"2015-07-30"},
                        "topicname3":{"addDate":"2015-07-30"},
                        "topicname4":{"addDate":"2015-07-30"}
                      }
                    }
                  }
                  

                  这篇关于FCM 在使用 PHP 发送推送通知之前验证设备令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  smtp gmail server php mailer not working(smtp gmail服务器php邮件程序不工作)
                  Email goes in spam when I send it via others SMTP server(当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件)
                  <tfoot id='B6hwE'></tfoot>

                            <tbody id='B6hwE'></tbody>
                        • <small id='B6hwE'></small><noframes id='B6hwE'>

                            <bdo id='B6hwE'></bdo><ul id='B6hwE'></ul>

                          • <legend id='B6hwE'><style id='B6hwE'><dir id='B6hwE'><q id='B6hwE'></q></dir></style></legend>

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