Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

676
Vistas
Upgrade to Angular/FIre V7 and Firebase V9 for Ionic/Capacitor App not working on iOS

I have an Ionic 5/Angular 12/Capacitor 3 mobile app that I am upgrading to Firebase 9 and Angular/Fire 7. Using the Angular/Fire upgrade command: ng update @angular/fire which uses the Firebase compat layer, the app works fine in browser running ionic serve. Next I created a production build to test on my phones, ionic cap sync --prod, and built to my Android and iPhones. The app works perfectly on Android, but does not on either of my iPhones, X and 6S. Debugging this a bit, shows that no response is coming from Firestore, including no error message. We even built the app and pushed to TestFlight and see the same inoperable app on iPhones.

Interesting note, running ionic cap run ios -l --external --prod directly to my iPhoneX does work!

The app is only using Firestore part of Firebase. User authentication is performed on a different backend and works normally.

Pertinent dependencies:

"@angular/...": "^12.0.1",
"@angular/fire": "^7.1.0",
"@capacitor/...": "^3.0.0",
"@ionic/angular": "^5.6.7",
"firebase": "^9.1.0",

NgModule imports:

    provideFirebaseApp(() => initializeApp(environment.firebase)),
    provideFirestore(() => {
      const firestore = getFirestore();
      enableIndexedDbPersistence(firestore);
      return firestore;
    }),

I am running Xcode 13.0 and iOS 15.0.1 on the iPhoneX and 14.6 on the iPhone6S.

I have tried dropping the compat layer and going directly to the new Angular/Fire 7 api for Firestore. But same result.

Even suggestions on what I can try to gain some more insight would be welcomed.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I fully removed the Angular/Fire compat layer, converted all Firestore calls to use the new modular SDK. When I posted my question I only partially removed the compat SDK.

Now with the app fully off Angular/Fire V7 compat, it works on both iOS and Android.

Not sure why compat layer was causing problems for iOS builds.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda