Unable to find a Capacitor plugin to handle requestCode #3
Replies: 1 comment
-
I've got this working by copying the java file in node modules. I've run into subsequent issues using the accessToken against the Google APIs.
It's nice being wrong! Did a fresh npm install. Replaced the java file in /node_modules for @codetrix-studio with the one from this repo. |
Beta Was this translation helpful? Give feedback.
-
Hi there, I installed this fork as I was using Capacitor 3. But how do I import and register this in MainActivity.java ? I think I'm getting this error because the import is still "import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth;"
But it's not installed but @reslear/capacitor-google-auth plugin is installed.
My MainActivity.jsva
`
import android.os.Bundle;
import com.getcapacitor.BridgeActivity;
import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth;
public class MainActivity extends BridgeActivity {
@OverRide
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
registerPlugin(GoogleAuth.class);
registerPlugin(com.getcapacitor.community.facebooklogin.FacebookLogin.class);
}`
My LoginPage.ts
import { GoogleAuth } from '@reslear/capacitor-google-auth';
My login is working fine in web but no on actual device. PLease guide me.
Beta Was this translation helpful? Give feedback.
All reactions