Skip to content

The sign in attempt didn't succeed with the current account (Android) #65

@Axemasta

Description

@Axemasta

I've followed the documentation, created my firebase project & apps and have integrated the library into my app. The app signs in as expected on iOS, no complaints there.

On Android as soon as I call LoginAsync() the following exception is thrown:
The exception

I have confirmed that the app package names match:

Manifest:
Manifest app name

Firebase:
Firebase app name

I have also confirmed the signing certificate sha's are the same. I got the first sha from the keystore and that was exactly the same as the PrintShaHash() method provided in the docs for this plugin.

I've downloaded the json from the console and added it to my project:
Android json in the project

I then tried running the sample provided by the library, changing the package name & json files. I get the same error on the sample app, you just end up with the following message:

Error message

The MainActivity in the sample has the init code already there:

GoogleClientManager.Initialize(this);
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
{
    base.OnActivityResult(requestCode, resultCode, data);
    GoogleClientManager.OnAuthCompleted(requestCode, resultCode, data);
}

Any ideas on how I can resolve these issues? they look to be with the configuration of the android app in firebase. I noticed that for the iOS app I had to submit a consent screen before it would work. However the app threw an exception to tell me this, it didn't just say login failed before I ever get prompted for my users credentials.

Smartphone

  • Device: Tablet M-DPI 7in Pie 9.0 - API 28 (1) X86
  • OS: Android
  • Version: API 28

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions