CapacitorGoogleAuth: Problem with new MainActivity.java file.
Hello. I updated to android studio 4.2.1 and Capacitor 3 plugins. This new updates give an empty MainActivity.java file with only this lines:
package com.aplicationname.app;
import com.getcapacitor.BridgeActivity;
public class MainActivity extends BridgeActivity {
}
then I have to change to:
package com.aplicationname.app;
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);
}
}
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 16
Hi @codemickey78 , I just have this
,
but before you have to settle some requirements, you can find them here:
https://github.com/CodetrixStudio/CapacitorGoogleAuth
https://devdactic.com/capacitor-google-sign-in/
https://www.youtube.com/watch?v=Rs1imvTbeN0
I tryed today, and itโs working so you can do it ๐
I had tried all of the above steps, and it was still getting stuck with a loading screen, after having selected an emailId. Then, I went to the OAuth Consent screen, and added my emailId to the list of Tester emails. and it worked.
Thanks for all the help.