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

140
Views
google social login not working in ionic capacitor using codetrix-studio capacitor-google-auth

in the capacitor.config.json

"GoogleAuth": {
  "scopes": ["profile","email"],
  "serverClientId": "KEY.apps.googleusercontent.com"
}

in index.html

<meta name="google-signin-client_id" content="KEY.apps.googleusercontent.com">

in android folder string.xml file

<string name="server_client_id">KEY.apps.googleusercontent.com</string>

and in our page .ts file to get detail of google user detail

const user = await GoogleAuth.signIn();

and I have an error in android something went wrong.

anyone has any idea how to solve this situation

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have to add these lines of code in android/app/src/main/java/com/appName/app/MainActivity.java

package com.growyd.app;

import android.os.Bundle;

import com.getcapacitor.BridgeActivity;
import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth;
import com.getcapacitor.Plugin;

import java.util.ArrayList;

public class MainActivity extends BridgeActivity {
  @Override
  public void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);

    //Initialize bridge
    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
      // Additional plugins you've installed go here
      add(GoogleAuth.class);
    }});
  }
}

In this link are the steps to configure the library.

my reference: https://devdactic.com/capacitor-google-sign-in/

about 4 years ago · Juan Pablo Isaza 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!