以编程方式与Firebase断开连接

以编程方式与Firebase断开连接

本文介绍了以编程方式与Firebase断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式断开用户连接?

How to programmatically disconnect the user?

这是我的问题:我知道与Firebase的最大同时连接数为100,但是在我的应用程序中,我正在从数据库中检索所有数据,然后不再需要它,因此可以断开连接从Firebase以编程方式拨打电话吗?

Here is my problem: I know that the maximum of simultaneous connection is 100 with firebase but in my application, I'm retrieving all the data from the database and then I don't need it anymore so is it possible to disconnect the phone from firebase programmatically?

推荐答案

调用:

是通过通过编程方式从Firebase断开连接的方式.从外观.希望有帮助.

is the way to disconnect the connection from firebase programmatically. Putting the call at the end of your onStart callback is going to be the way to go, from the looks of it. Hope that helps.

这篇关于以编程方式与Firebase断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 00:41