-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android App Crashing when SIgnIn button is clicked #389
Comments
Hi @MalikHamza007 , Same issue in my code.
|
I think it’s due to the last change in v6. |
I'm having the same issue. Fixed by removing one optional plugin I was trying out 'cordova-plugin-lottie-splashscreen' that added
to my capacitor.build.gradle. not sure what really cause it. no time to look further as I'm sole dev of my app. Capacitor 6 and 3.4.0-rc.4
|
Same issue. Hope a solution will be find |
Please look the new doc it explains clearly the issue, and how to solve it. |
Hi @riderx, is this what you are explaining here (or have I misunderstood)?:
|
Yes correct. |
Yeahh man i found the issue come mail me i'll send you the zip file |
Hello everyone, i have solved the issue and it works perfecto even the app has gone into production. In the code initialize the pluggin in the page or component where your are using Google login and use your web client id for every configuration just add your android client id in the capacitor config ts or json. Trust me this will work. For the android don't forget to add your permissions , your configuration in the strings.xml and registering the pluggin in the Main Activity Java. If you need more Help I'll send you the zip file of my project just do npm i and your good to go |
I have tested with Capacitor 6, and it works correctly. This is my code:
On iOS, send the iOS key. After this, on Android, send the web key, not the Android key. |
https://github.com/Cap-go/capacitor-social-login is now the official alternative, if you need more robust login please migrate, it's 99% the same API |
Ok so I used this pluggin to create a simple google sign in it works best on web and on android the app crashes when signIn function is clicked the app crashes and yes i have checked every thing my credentials client id strings even main java is correct when I debug the app the pluggin also syncs in the catlog. " E Serious error executing plugin" and another error. "E FATAL EXCEPTION: CapacitorPlugins
Process: io.ionic.starter, PID: 2383"
The text was updated successfully, but these errors were encountered: