firebase-android-sdk: Unable to complete Apple SSO flow using `startActivityForSignInWithProvider`

Environment

  1. com.google.firebase:firebase-auth:21.0.7
  2. Pixel 3 XL(Android 9), SM Galaxy S10 Lite(Android 12), Moto G4+(Android 7), Moto G 60 (Android 11)

The problem

Application uses Android SDK method (startActivityForSignInWithProvider) to authorise in the app via Apple SSO. When users start authentication flow, web browser is being opened, users enter their credentials, 2FA code (if needed) in a browser, then they are being returned to the app and get the com.google.firebase.auth.FirebaseAuthWebException: The web operation was canceled by the user exception.

Steps to reproduce:

  • Start login flow using startActivityForSignInWithProvider
  • Enter credentials in the opened browser
  • Observe an error (the user will be returned to the app with an exception)

Notes:

  • The issue does not reproduce on 100% devices
  • The issue reproduces on some devices for one apple id and does not reproduce on the same device for another apple id
  • The issue reproduces on one device and does not reproduce on another device for the same apple id

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Hi @Lyaisan, you can reach out to our Firebase support using this link.

While we wait for the video recording, I’ll add a needs-info tag for now. Don’t worry if the issue closes due to stale, we can always reopen once we have further details.