久久久久久久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>

        關(guān)閉應(yīng)用程序時收聽 Firebase 數(shù)據(jù)庫更改

        Listen to firebase database changes when app is closed(關(guān)閉應(yīng)用程序時收聽 Firebase 數(shù)據(jù)庫更改)

              <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'>

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

                  問題描述

                  我正在使用 firebase 創(chuàng)建一個 Ionic 2 應(yīng)用程序,我需要一種方法來在應(yīng)用程序關(guān)閉時(即在前臺、后臺和被終止)收聽數(shù)據(jù)庫更改(特別是在 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 在應(yīng)用程序中撥打電話,例如 whatsapp,我正在關(guān)注這篇文章 - 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

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

                  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 來主動監(jiān)聽數(shù)據(jù)庫更改是不可能的,就像在應(yīng)用代碼運行時一樣.

                  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.

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

                  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,以便更輕松地編寫一些服務(wù)器端可以觸發(fā)以響應(yīng)數(shù)據(jù)庫更改并在這些更改發(fā)生時發(fā)送通知的代碼.

                  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.

                  這篇關(guān)于關(guān)閉應(yīng)用程序時收聽 Firebase 數(shù)據(jù)庫更改的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  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 - 使用異步數(shù)據(jù)更新 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 中,如何創(chuàng)建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態(tài)元素 - 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一区在线 | 精品久久香蕉国产线看观看亚洲 | 亚洲第一网站 | 国产福利在线看 | 国产高清在线精品 | 欧美一区二区三区在线免费观看 | 情侣黄网站免费看 | 一级毛片高清 | 久久久久久久综合 | 91av小视频| 91丨九色丨国产在线 | 国产中文一区二区三区 | av免费入口| 欧美一区二区三区久久精品 | 欧美精品综合在线 | 麻豆久久久 | 97国产精品视频人人做人人爱 | 男女羞羞视频在线 | jdav视频在线观看免费 | 亚洲成人综合社区 | 日韩中文字幕2019 | 久久久性色精品国产免费观看 | 国产 亚洲 网红 主播 | 天天视频一区二区三区 | 欧美精品1区 | 精品国产一区二区三区久久久久久 | 免费在线观看h片 | 亚洲国产成人精品在线 | 久久com | 亚洲国产高清高潮精品美女 | 国产日韩欧美二区 | 久久三区 | 中文字幕在线观看av | 九九免费视频 | 在线一区二区观看 | 在线观看成人av | 在线免费观看黄色 | 日韩高清国产一区在线 | 91久久精品一区二区二区 | 99久久久久久99国产精品免 |