You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Ionic angular 17 with capactior to build android app using Android studio. It works everywhere browser, ios devices, etc but not on generated apk or android studio emulator pixel 6a VanillaIceCream.
The code work perfectly fine for IOS devices and browser. But when generate apk or run inside emulator I keep getting issue saying
I have tried everypossible way I know but couldnt make this work. The application works fine but it doesn't connect with firestore to fetch data on Android only.
main.347578574ae0b918.js:1 [2024-05-21T09:52:29.312Z] @firebase/firestore: Firestore (10.8.0): 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.
The last command will open android studio. I hit the play icon to make app run on my pixel emulator. Where the app is working fine but the firestore not able to connect. This is where i get the issue
@firebase/firestore: Firestore (10.8.0): Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=unavailable]:
Same code working fine with browsers and IOS app.
The text was updated successfully, but these errors were encountered:
Thanks. I can try to reproduce this. One question: do you see this error all the time and the SDK simply does not connect to backend? Or does it recover from this after the initial log?
Correct. I simply couldn't fetch anything. The error message throws instantly when the page first loads. This happens only with android. Both emulator and real device with apk installed
Operating System
Android 14
Browser Version
Android apk
Firebase SDK Version
10.7.2
Firebase SDK Product:
Firestore, Installations
Describe your project's tooling
I am using Ionic angular 17 with capactior to build android app using Android studio. It works everywhere browser, ios devices, etc but not on generated apk or android studio emulator pixel 6a VanillaIceCream.
Android 14.0
Android Emulator 34.2.14
android sdk platform-tools 35.0.1
Describe the problem
The code work perfectly fine for IOS devices and browser. But when generate apk or run inside emulator I keep getting issue saying
I have tried everypossible way I know but couldnt make this work. The application works fine but it doesn't connect with firestore to fetch data on Android only.
Below in my app.module.ts
Steps and code to reproduce issue
Build an basic app using
ionic 7.5.0
Angular 17
Firebase 10.7.2
npm run build:prod
The last command will open android studio. I hit the play icon to make app run on my pixel emulator. Where the app is working fine but the firestore not able to connect. This is where i get the issue
Same code working fine with browsers and IOS app.
The text was updated successfully, but these errors were encountered: