更新时间:2023-09-17 15:32:34
Firebase的 .info/connected
仅表示您的应用程序是否已连接到其Firebase数据库后端.它不检测常规网络连接.
Firebase's .info/connected
only signals whether your app is connected to its Firebase Database backend. It does not detect general network connectivity.
要确定后者,请尝试使用[此列表]中的许多答案之一.包括如何检查活动的Internet是在iOS还是OSX上进行连接?,>检测Internet的最简单方法在iOS上连接?,然后检查与Swift的互联网连接
To determine the latter, try one of the many answers from [this list]. Including How to check for an active Internet connection on iOS or OSX?, Easiest way to detect Internet connection on iOS?, and Check for internet connection with Swift.