Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda