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

207
Views
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 answers
Answer question

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 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!