FirebaseUI-iOS icon indicating copy to clipboard operation
FirebaseUI-iOS copied to clipboard

Facebook Authentication button has no action in iOS 13.2.2

Open SAPIENTechnologies opened this issue 6 years ago • 15 comments

Step 2: Describe your environment

  • Swift 5.1
  • iOS version: 13.2.2
  • Firebase SDK version: 4.44.1
  • FirebaseUI version: 6.2.1
  • CocoaPods Version: 1.8.3

Step 3: Describe the problem:

Have been using FirebaseUI in my project for several iterations. This includes Google, Facebook and email authentication. Using the same build on iOS 13.2.2 and on iOS 12.4.1. On 12.4.1 I can tap on the Facebook button and properly authenticate using Facebook. On 13.2.2 nothing happens when I tap on Facebook button. No error, no output to debug console, not a single thing. Google and email buttons work as expected.

Steps to reproduce:

  1. Install firebaseUI as instructed on Firebase UI instruction page
  2. Setup Facebook, Google and email authentication
  3. Run app on iOS 13.2.2 and tap on Facebook Button. Nothing happens

Observed Results:

Nothing. Ne error, now activity, no output on debug console

Expected Results:

*expect the app to start process of Logging in with facebook.

SAPIENTechnologies avatar Nov 08 '19 21:11 SAPIENTechnologies

I have the same issue.

FirebaseUI version: 7.0.0 iOS version: 13.1.3

flashadvanced avatar Nov 10 '19 11:11 flashadvanced

Hey, any news about this one? It is blocking my users from registering / logging in into my live app. At least is there any workaround I can apply for a quick fix?

flashadvanced avatar Nov 13 '19 14:11 flashadvanced

What I tried is adding a FBLoginButton programmatically just to test if it would work but again it doesn't work on iOS 13. You probably saw what XCode prints out when testing on simulator but still: -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

flashadvanced avatar Nov 14 '19 08:11 flashadvanced

I have not seen any error messages at all.

SAPIENTechnologies avatar Nov 14 '19 17:11 SAPIENTechnologies

Looks like that's kLSApplicationNotFoundErr, which either means you haven't installed the Facebook app on the target device or you're missing the LSApplicationQueriesSchemes defined in step 3 of Facebook's documentation.

morganchen12 avatar Nov 14 '19 17:11 morganchen12

Thank you fro that response. I do have the Facebook app installed on the device. LSApplicationQueriesSchemes was missing but when I added it, it had no effect. I have a second project that shows the same problem and I will add it there to see if it helps.

SAPIENTechnologies avatar Nov 14 '19 18:11 SAPIENTechnologies

Looks like that's kLSApplicationNotFoundErr, which either means you haven't installed the Facebook app on the target device or you're missing the LSApplicationQueriesSchemes defined in step 3 of Facebook's documentation.

Yeah, I have them all set up and nothing. It doesn't make sense as it's working on iOS 12. Do you think there might be a connection between both issues: https://github.com/facebook/facebook-ios-sdk/issues/1067?

flashadvanced avatar Nov 14 '19 18:11 flashadvanced

Looks like that's kLSApplicationNotFoundErr, which either means you haven't installed the Facebook app on the target device or you're missing the LSApplicationQueriesSchemes defined in step 3 of Facebook's documentation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

http://schema.org

SAPIENTechnologies avatar Nov 14 '19 18:11 SAPIENTechnologies

@SAPIENTechnologies If you can share the stack trace of the crash that would also be helpful. It looks like it's a different issue than the one @flashadvanced is describing.

To clarify if it's a FirebaseUI issue, are you able to sign into Facebook without using the Firebase SDK?

morganchen12 avatar Nov 14 '19 18:11 morganchen12

Sorry. I posted that to the wrong location. That is another problem that is unrelated.

SAPIENTechnologies avatar Nov 14 '19 19:11 SAPIENTechnologies

To clarify if it's a FirebaseUI issue, are you able to sign into Facebook without using the Firebase SDK?

Yeah, as I posted I tested with creating a Fb button (FBSDKLoginButton) programmatically and it behaved the same way as the fb button added automatically by FirebaseUI. So I guess this have to be a Facebook issue. I disabled the Fb login for now.

flashadvanced avatar Nov 14 '19 19:11 flashadvanced

Thanks all, we'll keep this open to track the Facebook issue and then update our podspec when a fix is released.

In the meantime you can also try testing older versions of the FBSDKLoginKit framework to see if the issue isn't reproducible on an older version.

morganchen12 avatar Nov 14 '19 19:11 morganchen12

Still broken Real Device with iOS 12.3.2 = OK iOS Simulator 13.3 = Failed

softmastx avatar Dec 30 '19 00:12 softmastx

What Facebook SDK versions are you using? For me, same "fbauth2:/" error was resolved when I updated Facebook SDK to 5.13.1.

I was using Facebook SDK 5.4.0 version which worked fine until iOS 13, and I had to update SDK in order for facebook button to work again.

sungjin0213 avatar Jan 08 '20 04:01 sungjin0213

I've solved the same problem updating my pods FirebaseUI to the latest version:

pod 'FirebaseUI/Facebook', '~> 8.0'
pod 'FirebaseUI/Auth', '~> 8.0'
pod 'FirebaseUI/Email', '~> 8.0'

And also the next pod:

pod 'Firebase/Database', '~> 6.0'

to a version 6.0 or higher because: FirebaseUI (~> 8.0) was resolved to 8.0.1, which depends on FirebaseUI/Database (= 8.0.1) was resolved to 8.0.1, which depends on Firebase/Database (~> 6.0)

jlandyr avatar Jan 27 '20 17:01 jlandyr