baumblatt / capacitor-firebase-auth

Capacitor Firebase Authentication Plugin
MIT License
261 stars 129 forks source link

Facebook on android is showing browser popup #185

Open josematoswork opened 2 years ago

josematoswork commented 2 years ago

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!

hicreate commented 2 years ago

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.

grptx commented 2 years ago

same here

grptx commented 2 years ago

in addition, facecebook will soon remove the ability to login from popups

grptx commented 2 years ago

up https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/

grptx commented 2 years ago

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'