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

FirebaseApp.configure() conflicts with other frameworks (Facebook Login) #80

Closed
rockbruno opened this issue Jun 9, 2017 · 8 comments
Closed
Assignees

Comments

@rockbruno
Copy link

[READ] Step 1: Are you in the right place?

Yes

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 8.3 (8E162)
  • Firebase SDK version: 4.0.0
  • Library version: 4.0.1
  • Firebase Product: Core

[REQUIRED] Step 3: Describe the problem

After running FirebaseApp.configure(), other frameworks that rely on url schemes will stop working.

Steps to reproduce:

  • Have a project that uses Facebook for authentication and Firebase for Analytics, for example.
  • Initialize both of them
  • Try to login with Facebook - a blank screen will show up and the login process will never end.

Alternatively

  • Comment FirebaseApp.configure()
  • See that Facebook and other frameworks will start working again.

Same problem was reported by someone on stackoverflow. Unfortunately it looks like whatever the configuration method is doing with the original openURL implementation is killing other guys that do the same.

@paulb777
Copy link
Member

paulb777 commented Jun 9, 2017

Thanks for the bug report.

Would you do a pod update to Firebase 4.0.2 and retry? A recent bug fix may address this issue.

@rockbruno
Copy link
Author

Hey there,
I just updated it, but unfortunately the problem still happens 😢

@paulb777
Copy link
Member

paulb777 commented Jun 9, 2017

Thanks for checking. We'll look deeper.

@morganchen12 morganchen12 self-assigned this Jun 9, 2017
@morganchen12
Copy link
Contributor

@rockbruno are you getting any errors in console when this happens? Can you upload a sample that reproduces this issue?

@bruno-rocha-movile
Copy link

Hey there, sorry for the delay, I ended up going to a new project.

We get a log in the console after attempting to login through Facebook (with Firebase enabled):
<Debug> [Firebase/Analytics][I-ACS023000] Deep Link Web URL query is empty

We were able to overcome it by adding FirebaseAppDelegateProxyEnabled = NO to our Info.plist, although that most likely disables half of Firebase. Since we just needed the analytics portion, it was good enough for us.

Will make a sample

@baolocdo
Copy link

Do you have other SDKs (would be great to know the Podfile)? How do you set up your open URL handler(s)? How do you return in those handlers?
The debug log is basically that Analytics is trying to get the utm_ params from the URL to log campaign events. It seems that the AppDelegateProxy does swizzling correctly.
It's ok if you turn off the feature and follow the instructions in FIRAnalytics+AppDelegate.h to avoid missing campaign events.
It would be nice to solve the right problem.

@paulb777
Copy link
Member

paulb777 commented Aug 2, 2017

Closing due to inactivity. Please reopen if there is still an issue.

@paulb777 paulb777 closed this as completed Aug 2, 2017
@chetandobariya
Copy link

After spending an almost full day, I have figure out the problem.

Below solution works like charm!

You can prevent Firebase from swizzling the methods in your AppDelegate by adding FirebaseAppDelegateProxyEnabled set to NO in your app's info.plist

@firebase firebase locked and limited conversation to collaborators Nov 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants