Firestore android sdk cannot reach backend server on android 9 and other versions(android N also)

安稳与你 提交于 2020-08-10 20:20:08

问题


App is getting error firestore not able to reach backend, internet is working perfectly (can reach google.com), After searching for solutions I found that there is a option of

firebase.firestore().settings({ experimentalForceLongPolling: true });

in firestore js sdk but not in android, Questions:

  1. Is this the right solution
  2. Whats the android equivalent

https://github.com/firebase/firebase-js-sdk/issues/1674

It worked when I changed the network from wifi to cellular, can we achieve this through code, anyhow detect firebase connection is failing then ask user to switch network or programatically change network ?

There exists a unanswered question : Couldn't reach cloud firestore backend Android (21.3.0)

来源:https://stackoverflow.com/questions/62688604/firestore-android-sdk-cannot-reach-backend-server-on-android-9-and-other-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!