Problem in facebook and google login

i have an application with ionic capacitor
and this is the ionic info

Ionic:

   Ionic CLI                     : 6.16.3 (/home/mersal/.nvm/versions/node/v14.17.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.6.9
   @angular-devkit/build-angular : 12.0.5
   @angular-devkit/schematics    : 12.0.5
   @angular/cli                  : 12.0.5
   @ionic/angular-toolkit        : 4.0.0

Capacitor:

   Capacitor CLI      : 3.1.0
   @capacitor/android : 3.0.2
   @capacitor/core    : 3.0.2
   @capacitor/ios     : not installed

Utility:

   cordova-res : 0.15.3
   native-run  : 1.4.0

System:

   NodeJS : v14.17.0 (/home/mersal/.nvm/versions/node/v14.17.0/bin/node)
   npm    : 7.16.0
   OS     : Linux 5.8
  • I am using this npm packages
    @capacitor-community/facebook-login and @codetrix-studio/capacitor-google-auth
    for facebook and google login.

  • facebook login and google login was working good till i uninstall npm packages of
    @capacitor-community/facebook-login and @codetrix-studio/capacitor-google-auth
    and reinstall them again

what happen is google login and facebook login working only in debug versions
but in release versions it’s not working and it’s not giving any action when pressing them (as i press in empty part of the screen)

it solved by make this line
minifyEnabled true
from build.gradle
to minifyEnabled false

Hello, @Mersal-Mohamed thanks for your posting.
I tried to implement the facebook login in ionic 5/capacitor 2.0 on March, and that worked at that time.
but I have migrated capacitor 2.0 into 3.0 and facebook login didn’t work as expected.
Did you implemented that in capacitor 3.0?
if so, can you share some code for facebook login?

capacitor 3.0
i will share the code with you

const FACEBOOK_PERMISSIONS = ['email', 'user_birthday', 'user_photos', 'user_gender'];
const result = await FacebookLogin.login({ permissions: FACEBOOK_PERMISSIONS }) as FacebookLoginResponse;
const token = await FacebookLogin.getCurrentAccessToken() as FacebookLoginResponse;
const email = await FacebookLogin.getProfile<{
  email: string;
}>({ fields: ['email'] });

if (result.accessToken) {
  // Login successful.

  this.socialLogin(token.accessToken.token, 'facebook'); 
}

Thanks very much.
@Mersal-Mohamed