Open RohanTalip opened 5 years ago
I'm also experiencing a similar issue with Facebook and Twitter only on iOS. When the user signs in and is taken back to the app, nothing happens. Signing in with Google and Email seem to work, however.
When on iOS the user signs in with Google or Microsoft and is taken back to the app, nothing happens; The firebase Web UI page with the providers reappears. A spinner that is supposed to indicate that the application is continuing sign-in process does not appear. "cordova": "9.0.0", "cordova-ios": "6.0.0". -> behaves exactly the same with "cordova": "9.0.0", "cordova-ios": "5.1.1" + cordova-plugin-wkwebview-engine.
We have tried all the possible plugins required from the firebase cordova auth, which are described here: https://firebase.google.com/docs/auth/web/cordova
Signing in with Apple and Email is working.
Everything works smoothly on the Android platform. Also in the browser on the Firebase Hosted website.
[REQUIRED] Describe your environment
Partial output from
cordova info
:My Cordova plugins:
Note that
cordova-universal-links-plugin
is reallycordova-universal-links-plugin-fix
.Slightly massaged output of
npm list | grep cordova
in my Cordova directory:[REQUIRED] Describe the problem
Steps to reproduce:
Attempting to sign in with Facebook just redirects back to my (Cordova) app after the login process on facebook.com, with no change to the FirebaseUI auth screen (i.e. no loading indicator), nor anything being logged, even though I am logging to the console in the signInFailure and signInSuccessWithAuthResult callbacks.
I am normally using the cordova-plugin-wkwebview-engine plugin to fix some layout issues but I removed it temporarily to get back to a more standard configuration. When the cordova-plugin-wkwebview-engine plugin is installed, after indicating on Facebook's web page that I want to continue (to sign in), the web view redirects to an m.facebook.com hostname with something like this in the source:
... and stays there. Clicking on the "Done" button at the top left in Safari will take me back to my Cordova app, but I am still not signed in.
The reason that I included the HTML source above is that the backslashes seem suspicious, but that could be a red herring.
Please note that signing in via Facebook is working in a regular web app, and signing in via Google is working in my Cordova app.
The same thing happens in an iPhone simulator (started via Xcode) as well as on a real iPhone.
The "embedded browser OAuth flow" setting is enabled in "Facebook Login" settings for my app.
Have I misconfigured something or is signing in with Facebook broken for everyone on Cordova / iOS?
Relevant Code: