hi,
I have an Ionic/capacitor app that uses @capacitor-firebase/authentication for social logins with Facebook and Google that work fine with capacitor5 and @capacitor-firebase/authentication “^5.4.1”.
The app is working and has been on the stores for a while.
I’m updating the app to capacitor6 and @capacitor-firebase/authentication “^6.0.0” but I can’t get them to work.
In version 5 an explicit initialization of Firebase was not necessary but with version 6 it seems that an initialization is necessary, is this correct?
I tried to initialize with a code like this:
const firebaseConfig = {
apiKey: 'xxxxxxxxxxxxxxxxxxxxx',
authDomain: 'xxxxxxxxxxxxxx.firebaseapp.com',
projectId: 'xxxxxxxxxxxxxxx',
appId: '1:xxxxxxxxxxxx:ios:xxxxxxxxxxxxxxx',
};
if (!this.platform.is('capacitor')) {
const app = initializeApp(firebaseConfig);
}
Firebase seems to initialize correctly, but I have other problems and I can’t verify; the first doubt is which appId should I use: for android, for ios or for web?.
However, initialization is not the only problem I encounter since I have “[popup/blocked]” errors in console and I can’t continue with the login procedure, for Facebook and Google, whether it is Ios or Android.
Any support is appreciated, thanks,
Maurizio