-
I was using version 6.3.1 of the plugin no problem with the Sign in with google functionality, but now that I've updated to version 7.0.0 I am getting this error whenever I run the signInWithGoogle function:
Here are some details from my config, I'm entirely sure which parts are important to this function. build.gradle only has
variables.gradle has these, among other things.
I'm running my app on an Android 11 emulator. I have my google-services.json file in there as well and, like I said, this was working fine up until the 7.0.0 update. Any ideas? Are there other dependencies I don't have? Update: I ran my app on Android 15 and it worked. The UI for the account selector seems different than it was before. Is there a new minimum requirement? Will this not work on 11? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We had to migrate to the new Credentials Manager on Android in v7.0.0 (see #803) which was a big change. Seems like your issue can be fixed by using the latest SDK versions (see https://issuetracker.google.com/issues/290661565). I recommend you to take a look at this project which works for me without issues: https://github.com/robingenz/capacitor-firebase-authentication-demo. Maybe you can find the difference in your codebase. |
Beta Was this translation helpful? Give feedback.
I'm using version 35 of the SDK. So far I have not been able to get your demo project running on an Android 11 device. I've tried fiddling with the browser targets but I can't get it going. I suspect compatibility problems with the older webview. I did notice though that after I did npm install and cap sync the project seems to be using @capacitor-firebase/[email protected] still. I haven't been able to find any differences in my build.gradle or variables.gradle from what's in the demo.
I tried my app on Android 15, 14, 13, and 12 and signInWithGoogle works on all of them. Android 11 my app will run but signInWithGoogle gives the error I mentioned. Below that I would have to put some e…