Having an Ionic Angular application, I added the Capacitor plugin to log into Facebook and I receive the user and the token. The problem is that I cannot connect to Firebase and create a session.
My packets are:
"@angular/common": "~12.1.1",
"@angular/fire": "^7.2.0",
"@capacitor-community/facebook-login": "^3.1.1",
"@capacitor/core": "3.3.1",
"@ionic/angular": "^5.5.2",
"firebase": "^9.6.2",
...
I have tried with no succes the following:
- signInWithPopup - works on browser - does not work on device
- signInWithRedirect - the same
- signInWithCredential - signing in with a custom token - I get an error that the token is not right
- signInWithCustomToken - the same
These packets I importe from '@angular/fire/auth';