Sunday, December 15, 2024
HomeiOS Developmentangular - Firebase Cellphone Auth woks on internet however not on IOS...

angular – Firebase Cellphone Auth woks on internet however not on IOS gadget


I created an Ionic 8 + Capacitor + Firebase challenge and added the newest model of AngularFire to it.

All the things works completely on Desktop however after I launch on my iPhone, there’s an error seems on Xcode console: [error] - ERROR {"code":"auth/internal-error","customData":{},"title":"FirebaseError"}

My app.module.ts appears to be like like:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { AppComponent } from './app.element';
import { AppRoutingModule } from './app-routing.module';
import { initializeApp, provideFirebaseApp } from '@angular/hearth/app';
import { getAuth, provideAuth } from '@angular/hearth/auth';
import { setting } from 'src/environments/setting.prod';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule,
    IonicModule.forRoot(),
    AppRoutingModule],
  suppliers: [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
    provideFirebaseApp(() => initializeApp(environment.firebaseConfig)),
    provideAuth(() => getAuth())],
  bootstrap: [AppComponent],
})
export class AppModule {}

I’ve spent quite a lot of time attempting varied issues however it would not work. I even put in the firebase sdk from xcode (I do not know if it is actually essential) and I additionally configured the GoogleService-Data.plist file, however the error nonetheless persists.

Do you could have any concepts how I can repair the issue ?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments