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

    <legend id='wp3tH'><style id='wp3tH'><dir id='wp3tH'><q id='wp3tH'></q></dir></style></legend>

        <tfoot id='wp3tH'></tfoot>

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

        iPad Safari 上的 Firebase;找不到变量:通知

        时间:2023-08-02
          <bdo id='pUOkQ'></bdo><ul id='pUOkQ'></ul>

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

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

                  本文介绍了iPad Safari 上的 Firebase;找不到变量:通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我使用 Firebase 的云消息传递,但它不适用于 iPad 和 iPhone.这是我能用它做的最简单的用法.我刚刚完成了所有关于异地通知的教程,但我直接在 Firebase 的脚本中得到了这个错误.

                  I use Firebase's cloud messaging, but it won't work on iPad and iPhone. It's the simplest usage i can do with it. I just did all the tutorial about offsite notifications but i got this error directly in the Firebase's script.

                  推荐答案

                  您使用的 firebase JavaScript 库与 iOS 上的 Safari 不兼容.在 iOS 设备上运行的 Safari 浏览器与应用程序的桌面版本不同,并且没有相同的功能集.

                  The firebase JavaScript library you're using is incompatible with Safari on iOS. The Safari browser that runs on iOS devices is not the same as the desktop build of the application and does not have the same feature set.

                  在这种特定情况下,iOS Safari 会在您的 firebase.js 库上抛出错误,尝试使用 Web 通知 API 的 requestPermission() 方法以允许 firebase 向用户显示通知.不过通知 API 不存在.

                  In this specific case, iOS Safari is throwing an error on your firebase.js library attempting to use the Web Notification APIs requestPermission() method in order to allow firebase to show notifications to the user. The Notification API doesn't exist though.

                  您可以在此处查看对通知 API 的支持:http://caniuse.com/#search=Notification

                  You can see the support for the Notification API here: http://caniuse.com/#search=Notification

                  当在不支持它的移动设备上查看您的网络应用时,您可能需要查看替代方案或禁用 firebase 库.如果它应该在 iOS Safari 上运行,那么您应该向 Firebase 提交一个错误,并查看是否有可用的补丁或更新来解决 firebase.js 库中的问题.

                  You may have to look at an alternative or disable the firebase library when your web app is viewed on mobile devices which don't support it. If it's supposed to work on iOS Safari then you should file a bug with Firebase and see if there's a patch or update available which resolves the issue in the firebase.js library.

                  这篇关于iPad Safari 上的 Firebase;找不到变量:通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 localhost 上未收到 Web 的 FCM 推送通知 下一篇:如何从 javascript 注册到 GCM 主题(适用于 Chrome)

                  相关文章

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

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