Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
La ventana emergente de inicio de sesión de Google no se muestra en el móvil - ReactJS

Estoy creando una aplicación web que usa Firebase Authentication e implementé Google Sign In con la función signInWithPopup . Pero mientras que en un navegador de PC la ventana emergente se muestra correctamente, en el móvil se cierra inmediatamente o no se abre y no puedo encontrar en ningún lugar de Internet por qué sucede. Todo el proyecto está configurado con create-react-app.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

signInWithPopup() es para el navegador, si está ejecutando Andriod, debe llamar a 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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!