Skip to content

iOS 15.2 Could not reach Cloud Firestore backend #7858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
elongberg opened this issue Dec 11, 2023 · 6 comments
Closed

iOS 15.2 Could not reach Cloud Firestore backend #7858

elongberg opened this issue Dec 11, 2023 · 6 comments

Comments

@elongberg
Copy link

Operating System

iOS 15.2

Browser Version

Safari/604.1

Firebase SDK Version

10.7.1

Firebase SDK Product:

Auth, Firestore

Describe your project's tooling

Angular 17

Describe the problem

Unable to use recent versions of firebase on iOS 15.2. With firebase versions 10.7.0 and 10.7.1, we get the below error.

Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=unavailable]: The operation could not be completed This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.

This is followed (and preceded) by a trickle of warnings like so:
WebChannelConnection RPC 'Listen' stream 0x8c3e05c0 transport errored

We're having an unrelated error with firebase that also makes it unusable on any older versions since 10.0.0 (if we decide it's not just an oddity in our setup, we may post a separate issue for that, but that issue did go away in 10.7.0). Last known-working firebase was 9.17.2 (haven't been able to test yet on newer version 9's).

Enabling experimentalForceLongPolling has no effect. No issue when running in iOS 15.5 or later (unsure about 15.3/15.4). We don't have physical devices with these older iOS versions, but this happens consistently in iOS simulators/not just a network issue, and their are reports of this in the field as well.

Steps and code to reproduce issue

See above

@elongberg elongberg added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Dec 11, 2023
@jbalidiong jbalidiong added api: firestore needs-attention and removed api: auth new A new issue that hasn't be categoirzed as question, bug or feature request labels Dec 12, 2023
@thomasdao
Copy link

@elongberg I also see the similar error WebChannelConnection RPC 'Listen' stream 0x8c3e05c0 transport errored in my project and also reported in #7860. Reverting to older version 10.6.0 works for me, maybe you can try on your side? I suspect that two issues may share the same root cause.

@ehsannas ehsannas self-assigned this Dec 12, 2023
@ehsannas
Copy link
Contributor

@elongberg Would you be able to try version 10.6.0 and let us know if that resolves the issue for you?

@elongberg
Copy link
Author

@ehsannas On any version 10.x.x prior to 10.7.0, we have separate issues. We have code along the lines of this:

const app = initializeApp(config);
initializeAuth(app);
getFirestore(app);

This works on every other platform/firebase version. But with iOS 15.2 and e.g. firebase 10.6.0, initializeAuth throws this error
Component auth has not been registered yet
and (if we temporarily comment out the auth portion) getFirestore throws this error
Service firestore is not available

@ehsannas
Copy link
Contributor

@elongberg would you be able to provide a reproduction code snippet or app?

@elongberg
Copy link
Author

We've decided it's easiest to stop supporting the older iOS versions (updates are readily available). Hopefully the basic setup I described above would be enough to replicate it, but I won't be able to make a minimal version to confirm it.

@ehsannas
Copy link
Contributor

ehsannas commented Jan 2, 2024

Closing since I'm not able to reproduce this issue.

@ehsannas ehsannas closed this as completed Jan 2, 2024
@firebase firebase locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants