【问题标题】:Pausing firebase connection when app is in background当应用程序处于后台时暂停 Firebase 连接
【发布时间】:2017-03-10 11:53:35
【问题描述】:

我是否可以在后台暂停从我的 ionic 应用到 f​​irebase 的连接?

【问题讨论】:

    标签: angularjs firebase ionic-framework firebase-realtime-database angularfire


    【解决方案1】:

    您可以尝试注册一个暂停事件并在暂停事件中添加 firebase.app.App.database.goOffline()。

    并在resume事件中添加firebase.app.App.database().goOnline()

    【讨论】:

      猜你喜欢
      • 2019-01-30
      • 1970-01-01
      • 2016-08-26
      • 2020-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多