# Google Firebase signInWithPopup doesn't show on iOS using Ionic Capacitor

**URL:** <https://forum.ionicframework.com/t/google-firebase-signinwithpopup-doesnt-show-on-ios-using-ionic-capacitor/246721>\
**Category:** Capacitor\
**Created:** [February 18, 2025, 7:37pm UTC](https://forum.ionicframework.com/t/google-firebase-signinwithpopup-doesnt-show-on-ios-using-ionic-capacitor/246721 "2025-02-18T19:37:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshkarges](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/joshkarges/32/148722_2.png) [@joshkarges](https://forum.ionicframework.com/u/joshkarges)\
**Post date:** [February 18, 2025, 7:37pm UTC](https://forum.ionicframework.com/t/google-firebase-signinwithpopup-doesnt-show-on-ios-using-ionic-capacitor/246721/1 "2025-02-18T19:37:06Z")

</div>

When using `firebase.auth().signInWithPopup(googleAuthProvider);`, it works fine in the web app, but nothing happens in the iOS simulator using Ionic Capacitor. Do I need to use some kind of in app browser? Is there another way to sign in with google using Ionic Capacitor?

---

<div class="post-metadata">

**Author:** ![twestrick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/twestrick/32/136131_2.png) [@twestrick](https://forum.ionicframework.com/u/twestrick)\
**Post date:** [February 18, 2025, 7:41pm UTC](https://forum.ionicframework.com/t/google-firebase-signinwithpopup-doesnt-show-on-ios-using-ionic-capacitor/246721/2 "2025-02-18T19:41:21Z")

</div>

Assuming you are using the web SDK for Firebase? I believe you have to use the native SDKs. There is a plugin over here - [Capacitor Firebase Authentication Plugin - Capawesome](https://capawesome.io/plugins/firebase/authentication/)

---

<div class="post-metadata">

**Author:** ![joshkarges](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/joshkarges/32/148722_2.png) [@joshkarges](https://forum.ionicframework.com/u/joshkarges)\
**Post date:** [February 18, 2025, 11:27pm UTC](https://forum.ionicframework.com/t/google-firebase-signinwithpopup-doesnt-show-on-ios-using-ionic-capacitor/246721/3 "2025-02-18T23:27:57Z")

</div>

I think this is getting closer to the right solution. It still works in the web using @capacitor-firebase/authentication, but now I’m getting a `Thread 1: signal SIGABRT` app crash when trying in the iOS simulator ☹, and I’m not sure how to debug it from here.

---

<div class="post-metadata">

**Author:** ![joshkarges](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/joshkarges/32/148722_2.png) [@joshkarges](https://forum.ionicframework.com/u/joshkarges)\
**Post date:** [February 19, 2025, 12:22am UTC](https://forum.ionicframework.com/t/google-firebase-signinwithpopup-doesnt-show-on-ios-using-ionic-capacitor/246721/4 "2025-02-19T00:22:38Z")

</div>

I backtracked and resolved the SIGABRT error. Here’s what I’ve done so far:

1. yarn add `@capacitor-firebase/authentication`
2. Used this when signing in:

```auto
import { FirebaseAuthentication } from "@capacitor-firebase/authentication";
import { GoogleAuthProvider } from "firebase/auth";
...
  const result = await FirebaseAuthentication.signInWithGoogle();
  // 2. Sign in on the web layer using the id token
  const credential = GoogleAuthProvider.credential(
    result.credential?.idToken
  );
  firebase.auth().signInWithCredential(credential);

```

1. Added an iOS app to my firebase console, downloaded the GoogleService-Info.plist file and put it in my ios/App/App folder (including adding it in xcode)
2. Added `FirebaseApp.configure()` to the application method in the AppDelegate.swift file where FirebaseApp comes from `import FirebaseCore`
3. Added this to my capacitor.config.ts file:

```auto
plugins: {
    FirebaseAuthentication: {
      skipNativeAuth: false,
      providers: ["google.com"],
    },
  },

```

Yet when clicking the “Sign In With Google” button. Nothing happens, but I would expect a popup to appear to be able to log in with google.
