久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='J2hyd'></bdo><ul id='J2hyd'></ul>
    1. <tfoot id='J2hyd'></tfoot>
      <i id='J2hyd'><tr id='J2hyd'><dt id='J2hyd'><q id='J2hyd'><span id='J2hyd'><b id='J2hyd'><form id='J2hyd'><ins id='J2hyd'></ins><ul id='J2hyd'></ul><sub id='J2hyd'></sub></form><legend id='J2hyd'></legend><bdo id='J2hyd'><pre id='J2hyd'><center id='J2hyd'></center></pre></bdo></b><th id='J2hyd'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='J2hyd'><tfoot id='J2hyd'></tfoot><dl id='J2hyd'><fieldset id='J2hyd'></fieldset></dl></div>

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

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

        關閉應用程序時收聽 Firebase 數據庫更改

        Listen to firebase database changes when app is closed(關閉應用程序時收聽 Firebase 數據庫更改)

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

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

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

                • 本文介紹了關閉應用程序時收聽 Firebase 數據庫更改的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 firebase 創建一個 Ionic 2 應用程序,我需要一種方法來在應用程序關閉時(即在前臺、后臺和被終止)收聽數據庫更改(特別是在 child_add 上)

                  I am creating an Ionic 2 app with firebase and I need a way to listen to database changes (specifically on child_added) when the app is closed (I.e. in foreground,background and killed)

                  基本上,我想使用 WebRTC 在應用程序中撥打電話,例如 whatsapp,我正在關注這篇文章 - https://websitebeaver.com/insanely-simple-webrtc-video-chat-using-firebase-with-codepen-demo

                  Basically, I want to use WebRTC to make calls within the app like whatsapp and I am following this post - https://websitebeaver.com/insanely-simple-webrtc-video-chat-using-firebase-with-codepen-demo

                  但是,唯一讓我感到困惑的是,當應用程序關閉時它會如何工作.誰能幫我理解一下?

                  However, the only thing that puzzles me is how it will work when the app is closed. Can anyone please help me understand?

                  謝謝!

                  推薦答案

                  使用 Firebase 客戶端 SDK 來主動監聽數據庫更改是不可能的,就像在應用代碼運行時一樣.

                  It's not possible to actively listen to database changes using the Firebase client SDK in exactly the same way that you can when your app's code is running.

                  如果您希望您的應用接收有關數據庫更改的信息,您可以改用 Firebase Cloud Messaging 向您的應用發送通知,其中包含有關更改的信息的小負載.當您的應用收到通知時,它可以決定要做什么.網絡支持有一些限制,所以請務必閱讀那個.

                  If you want your app to receive information about changes to your database, you can instead use Firebase Cloud Messaging to send your app a notification with a small payload that contains information about the change. When your app receives the notification, it can then make a decision about what to do. There are some limitations with web support, so be sure to read about that.

                  還可以查看 Cloud Functions for Firebase,以便更輕松地編寫一些服務器端可以觸發以響應數據庫更改并在這些更改發生時發送通知的代碼.

                  Also look into Cloud Functions for Firebase to make it easier to write some server side code that can trigger in response to a database change and send a notification when those changes happen.

                  這篇關于關閉應用程序時收聽 Firebase 數據庫更改的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數據更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)
                • <i id='SMIQK'><tr id='SMIQK'><dt id='SMIQK'><q id='SMIQK'><span id='SMIQK'><b id='SMIQK'><form id='SMIQK'><ins id='SMIQK'></ins><ul id='SMIQK'></ul><sub id='SMIQK'></sub></form><legend id='SMIQK'></legend><bdo id='SMIQK'><pre id='SMIQK'><center id='SMIQK'></center></pre></bdo></b><th id='SMIQK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='SMIQK'><tfoot id='SMIQK'></tfoot><dl id='SMIQK'><fieldset id='SMIQK'></fieldset></dl></div>

                  • <bdo id='SMIQK'></bdo><ul id='SMIQK'></ul>

                          <tbody id='SMIQK'></tbody>

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

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

                          <tfoot id='SMIQK'></tfoot>

                            主站蜘蛛池模板: 成 人 黄 色 片 在线播放 | 深夜福利av | 一区二区三区视频 | 九九色影院| 日韩视频在线免费观看 | 亚洲网站在线 | 亚洲国产欧美日韩在线 | 久久精品视频网 | 久热精品在线观看 | 国产黄色精品视频 | 日韩免费看片 | 插插插视频 | 精品久久久久久久久久 | 在线视频99| 欧美亚洲一区二区三区 | 特一级黄色片 | 国产精品视频免费看 | 中文字幕三级 | 午夜色婷婷 | 欧美日韩精品 | 免费视频一区二区 | 免费观看毛片 | 国产免费观看视频 | 日韩精品网站 | 亚洲成人欧美 | 久久视频在线免费观看 | 免费黄视频网站 | 精品久久久久久久久久久 | 亚洲成av | 久久香蕉精品 | 黄色福利| 亚洲国产激情 | 日本黄色免费看 | 国产精品久久午夜夜伦鲁鲁 | www.色com| 国产精品视频免费 | 91视频观看| 色噜噜狠狠一区二区三区 | 99久久视频 | 在线观看av的网站 | 免费av网址在线观看 |