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

Login with Facebook IOS fires an error #192

Open
nicolardi opened this issue Sep 21, 2021 · 0 comments
Open

Login with Facebook IOS fires an error #192

nicolardi opened this issue Sep 21, 2021 · 0 comments

Comments

@nicolardi
Copy link

Hi,

I am facing with an issue with facebook login on IOS

I am using this code

cfaSignInFacebook().subscribe(
        	(user) => {
            alert("SUCCESS");
          
          },
          (err) => {
            alert("ERROR"+JSON.stringify(err));
            console.log(JSON.stringify(err));
          }
       )

The app opens facebook's login screen. I login and I am redirected to the app but I am getting this error message:

{"code":"app/no-app","customData":{"appName":"[DEFAULT]"},"name":"FirebaseError"}

and using "safari" remote debugger tool I have another error message:

FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app).

My initialization code into AppDelegate.swift is

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
        FirebaseApp.configure()
        
        return true
    }

I am using capacitor latest with capacitor/ios 3.2.3 and capacitor-firebase-auth 3.1.2-rc.3

Am I missing anything?

Thanks

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

No branches or pull requests

1 participant