capacitor-firebase-auth
capacitor-firebase-auth copied to clipboard
Facebook on android is showing browser popup
I am using capacitor 3.0 and Google authentication works on browser and Android. The facebook authentication works on browser but on Android when logging in with facebook it opens a browser popup where I need to login with facebook again instead of using my installed facebook app session.
My capacitor.config.json look like this
{ "appId": "com.xxx.yyy", "appName": "AppName", "bundledWebRuntime": false, "npmClient": "npm", "webDir": "www", "plugins": { "CapacitorFirebaseAuth": { "providers": ["google.com", "apple.com", "facebook.com"], "languageCode": "en", "nativeAuth": true, "properties": { }, "permissions": { "google": ["email", "profile"], "facebook": ["email"], "apple": ["fullName", "email"] } } } }
Is this config correct ? Can someone help me ?
Thanks!
I am using capacitor 3.0 and Google authentication works on browser and Android. The facebook authentication works on browser but on Android when logging in with facebook it opens a browser popup where I need to login with facebook again instead of using my installed facebook app session.
My capacitor.config.json look like this
{ "appId": "com.xxx.yyy", "appName": "AppName", "bundledWebRuntime": false, "npmClient": "npm", "webDir": "www", "plugins": { "CapacitorFirebaseAuth": { "providers": ["google.com", "apple.com", "facebook.com"], "languageCode": "en", "nativeAuth": true, "properties": { }, "permissions": { "google": ["email", "profile"], "facebook": ["email"], "apple": ["fullName", "email"] } } } }
Is this config correct ? Can someone help me ?
Thanks!
I too am experiencing this today.
same here
in addition, facecebook will soon remove the ability to login from popups
up https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/
it is necessary to update the facebook sdk version to a new version in your applevel build.gradle
file
implementation 'com.facebook.android:facebook-android-sdk:11.1.0'