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

210
Vistas
Google Sign In Popup window not showing on mobile - ReactJS

I'm building a web app that uses Firebase Authentication and I implemented the Google Sign In with the function signInWithPopup. But while on a pc browser the popup is shown correctly, on mobile it immediately closes or doesn't event open and I can't find anywhere on the internet why it happens. The whole project is set up with create-react-app.

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

0

signInWithPopup() is for the browser, if you're running Andriod, you need to call signInWithCredential.

signInWithGoogle() {
    if (this.platform.is('cordova')) {
      return this.gl.login(['email', 'public_profile']).then(res => {
        const googleCredential = firebase.auth.GoogleAuthProvider.credential(res.authResponse.accessToken);
        return firebase.auth().signInWithCredential(googleCredential);
      })
    }
    else {
      return this.afAuth.auth
        .signInWithPopup(new firebase.auth.GoogleAuthProvider())
        .then(res => console.log(res));
    }
  }
about 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