Java Firebase Auth使用WiFi,但不使用移动数据
当我尝试使用Firebase应用程序上的移动数据登录时,出现此错误: 发生网络错误(如超时、连接中断或主机无法访问) 我的应用程序工作得很好,直到我尝试在我的新智能手机上使用移动数据登录(它与我的旧智能手机工作得很好),我对问题的根源已经没有什么想法了。以下是我已经尝试过的东西“Java Firebase Auth使用WiFi,但不使用移动数据,java,android,firebase-authentication,Java,Android,Firebase Authentication,当我尝试使用Firebase应用程序上的移动数据登录时,出现此错误: 发生网络错误(如超时、连接中断或主机无法访问) 我的应用程序工作得很好,直到我尝试在我的新智能手机上使用移动数据登录(它与我的旧智能手机工作得很好),我对问题的根源已经没有什么想法了。以下是我已经尝试过的东西“ 检查数据限制、数据限制和权限。 重置APN。 检查网络提供商:我将新SIM卡放在旧手机中,它工作正常,当我在新手机上共享该连接时,它也工作正常。 检查android版本:我认为可能是我的新手机的android版本(AP
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.caroloucl"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'de.hdodenhof:circleimageview:2.2.0'
}
好的,所有问题都指向一个仅限于设备的问题。问题可能出在web套接字上,因为使用VPN可以解决问题。是的@GauravMall,这肯定与web套接字有关;对于我的一些用户来说,这也会遇到问题,在使用VPN时会得到解决。但这本身并不是一个解决方案,我们不能要求用户下载并使用VPN若要使用我们的应用程序…是否有人找到此问题的永久修复/解决方案?是否有此问题的更新?是否有此问题的更新?