Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook and Google singin not working on iOS 9.x and 10.x FirebaseUI #666

Open
nole87 opened this issue Apr 12, 2019 · 12 comments
Open

Facebook and Google singin not working on iOS 9.x and 10.x FirebaseUI #666

nole87 opened this issue Apr 12, 2019 · 12 comments

Comments

@nole87
Copy link

nole87 commented Apr 12, 2019

Step 1: Are you in the right place?

Yes, firebase supports direct me here

Step 2: Describe your environment

Swift 4.0
iOS 9.x or 10.x
newest Firebase and FirebaseUI via pods

Step 3: Describe the problem:

In my last version of app everything works fine, all was configured for all auth providers and with FirebaseUI. I now prepare new version of my app and only for iOS 9.x and iOS 10.x Facebook and Google sing in doesn't work anymore. For 11.x and 12.x it works! I get this error: -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" For Google I don't get any error

@morganchen12
Copy link
Contributor

Can you share a project that reproduces this issue?

The OSStatus error occurs when the facebook app isn't installed, and is safe to ignore (the OAuth flow will be completed in a Safari window instead).

@nole87
Copy link
Author

nole87 commented May 30, 2019

I will try later or for weekend to share temp project to demonstrate bug.

@nole87
Copy link
Author

nole87 commented Jun 3, 2019

I will attach project as soon as possible because I must remove lot of project!!! :)

@nole87
Copy link
Author

nole87 commented Jun 3, 2019

Here is link for project: https://drive.google.com/file/d/16tJZQL4iEo_q9eWjG22sQxGDJy6ITfUh/view?usp=sharing

Please, try iOS 9 and 10 than 11 and 12. On 9 and 10 it doesn't work and on 11 and 12 it works :)

Thanks!

@morganchen12
Copy link
Contributor

I wasn't able to reproduce the error on iOS 10 (haven't tried iOS 9). Google sign in works as expected. What error are you getting?

@nole87
Copy link
Author

nole87 commented Jun 4, 2019

-canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2019-06-04 22:04:30.537 Patroler[44044:433109] -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

On iPhone 7 simulator iOS 10.3.1 I get above error for facebook. For google I don't get error but it doesn't sing in. Also this happen for iOS 9. I try on real device iPhone 6S, iOS 10.x same bug ...

Screen Shot 2019-06-04 at 10 04 29 PM

Screen Shot 2019-06-04 at 10 04 40 PM

Screen Shot 2019-06-04 at 10 05 19 PM

Screen Shot 2019-06-04 at 10 05 27 PM

@morganchen12
Copy link
Contributor

Your web flow looks like it's signed in. What happens when you press Done in the upper left?

@nole87
Copy link
Author

nole87 commented Jun 4, 2019

It shows this:
Screen Shot 2019-06-04 at 10 14 07 PM

In my opinion it's not good, it should close automaticly. Strange for me because it was working, now only on iOS 9 and 10 it doesn't. For iOS 9 and 10 I disable facebook and google provider but I don't know how much of users are on these platform. Probably not to much, so it's ok if we don't resolve :)

@morganchen12
Copy link
Contributor

Hm, seems like a bug (the dialogue should dismiss on a successful login). Can you try updating to the latest version of Firebase? I'll keep this issue open in case any one else has the same issue.

@nole87
Copy link
Author

nole87 commented Jun 4, 2019

I did, I use pods and always before update I use pod update ...

What about facebook provider, in my opinion it's more important on iOS than google ...

@unace
Copy link

unace commented Dec 9, 2019

The same thing happening to me. Google sign-in on iOS 10 doesn't work, it shows "one moment please" then goes to google site as same as the screenshots above. iOS 11+ works well. I'm sorry I am not allowed to share my project.

@unace
Copy link

unace commented Dec 10, 2019

I found what causes this issue. In my case, handling the URL wasn't set up correctly.

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options {
  NSString *sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey];
  return [[FUIAuth defaultAuthUI] handleOpenURL:url sourceApplication:sourceApplication];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants