Capacitor 6 Issues with capacitor-firebase/authentication on IOS

Hi everyone,

I’m developing an Ionic app with the following versions:

  • Ionic: 8.x
  • Angular: ^18.x
  • @capacitor-firebase/authentication: ^6.3.1
  • Capacitor: 6.x

I’m trying to implement Firebase Authentication (phone method) on iOS. I’ve followed the setup suggested in the official @capacitor-firebase/authentication documentation, including:

  1. Adding the GoogleService-Info.plist file to the Xcode project.
  2. Configuring the plugin in capacitor.config.ts:
{
  "plugins": {
    "CapacitorFirebaseAuthentication": {
      "skipNativeAuth": false
    }
  }
}
  1. Synchronizing the project with:
npx cap sync

However, when I try to perform an authentication operation (e.g., sign in with the phone method), I encounter the following error in the console when running the app on iOS:

CapacitorFirebaseAuthentication.RuntimeError: 0x301552840

I have checked the following:

  • The reCAPTCHA configuration in the Firebase console.
  • That the GoogleService-Info.plist file is in the correct location and added to the Xcode project.
  • The APNs Key setup in Firebase for notifications.

Questions:

  1. What does the error code 0x301552840 mean in the context of iOS?
  2. Are there any additional steps for configuring Firebase or Xcode that I might be missing?
  3. Could this error be related to the reCAPTCHA setup or to the versions of the libraries I’m using?

Any guidance or suggestions would be greatly appreciated. If you need more details, such as additional configurations or Xcode logs, I can provide them.

Some guidance on the subject would be very helpful because I have little experience and I’ve been dealing with this problem for almost a month and I can’t find how to solve it.

Many Thanks!