firebase / FirebaseUI-iOS

iOS UI bindings for Firebase.
Apache License 2.0
1.49k stars 467 forks source link

Facebook Authentication button has no action in iOS 13.2.2 #800

Open SAPIENTechnologies opened 4 years ago

SAPIENTechnologies commented 4 years ago

Step 2: Describe your environment

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.

flashadvanced commented 4 years ago

I have the same issue.

FirebaseUI version: 7.0.0 iOS version: 13.1.3

flashadvanced commented 4 years ago

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 commented 4 years ago

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.)"

SAPIENTechnologies commented 4 years ago

I have not seen any error messages at all.

morganchen12 commented 4 years ago

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.

SAPIENTechnologies commented 4 years ago

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.

flashadvanced commented 4 years ago

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?

SAPIENTechnologies commented 4 years ago

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

morganchen12 commented 4 years ago

@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?

SAPIENTechnologies commented 4 years ago

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

flashadvanced commented 4 years ago

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.

morganchen12 commented 4 years ago

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.

softmastx commented 4 years ago

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

sungjin0213 commented 4 years ago

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.

jlandyr commented 4 years ago

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)