Skip to content

bug: Apple Auth on Android: A headful operation is already in progress. Please wait for that to finish. #912

@chrisspiegl

Description

@chrisspiegl

Plugin(s)

  • Authentication

Version

7.3.1

Platform(s)

  • Android

Current behavior

When using Apple Auth on Android, I get the error message:

A headful operation is already in progress. Please wait for that to finish.

When triggering the sign-in via a button. The sign-in then does not start / function.

Expected behavior

Apple Auth to work on Android.

Reproduction

I am willing to create one, but it is quite involved to set it all up completely. So, if you already have a repo with Apple Auth and can test on Android. That'd be great.

Steps to reproduce

  1. Set up Capacitor and Android
  2. Install: @capacitor-firebase/authentication firebase
  3. const result = await FirebaseAuthentication.signInWithApple({ skipNativeAuth: true })
  4. When triggered, the error shows in the console when running the code inside Capacitor on Android.
  5. A headful operation is already in progress. Please wait for that to finish.

Other information

I tried researching the issue and found two mentions of the error message on:

They suggested that a fix would be to “remove” android:taskAffinity="" from the AndroidManifest.xml though that is not set in my AndroidManifest.xml at all.

I thought it might be something related to the Firebase Android SDK. But they seem to think it's down stream.

Which is the reason I am reporting it here.

Capacitor doctor

Latest Dependencies:

@capacitor/cli: 7.4.3
@capacitor/core: 7.4.3
@capacitor/android: 7.4.3
@capacitor/ios: 7.4.3

Installed Dependencies:

@capacitor/cli: 7.4.3
@capacitor/android: 7.4.3
@capacitor/core: 7.4.3
@capacitor/ios: 7.4.3

[success] iOS looking great! 👌
[success] Android looking great! 👌

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions