Facebook login & Google sign in not working on Android app in production?

Jyotishgher Astrology
By -
0

Facebook login & Google sign in not working on Android app in production (Google Play Store)?




The social login was working in the debug mode and on the release version installed directly on the devices, but for the app installed through Play store it wasn’t.

WHY:




WHAT TO DO:

Go to Google play console page 


The “App signing certificate” at the top is what you are looking for. Go ahead copy that SHA-1 fingerprint to your firebase console. Google sign in should work now.

IF ERROR COMES 10cEXCEPTION API THEN NEED TO DO THIS 

Why do I get com.google.android.gms.common.api.ApiException: 10:?


If you are using Firebase and try on the debug app :
1. First, get your SHA-1 debug key :
  1. Click on Gradle (From Right Side Panel, you will see Gradle Bar)
  2. Click on Tasks
  3. Click on Android
  4. Double Click on signingReport (You will get SHA-1 and MD5)
2. Add new credentials to API Console
  1. Go here https://console.developers.google.com/apis/credentials
  2. Create new OAuth Client ID
  3. Name : Android client (for debug) (example)
  4. Signing-certificate fingerprint : Copy paste you SHA-1 debug key
  5. Put your package name then saved
3. Add your key to your Firebase project :

  1. Go to Project settings -> SHA certificate fingerprints -> Add SHA-1 key of debug app.
  2. Then you can update your google-services.json file in your Android project.
You must pass your server's client ID to the requestIdToken method. To find the OAuth 2.0 client ID:
  1. Open the Credentials page in the GCP Console.
  2. The Web application type client ID is your backend server's OAuth 2.0 client ID.

PASTE THIS IN FIRE BASE CONSOLE SETTINGS




the upload certificate which you see in the screenshot above, that’s the certificate (original release signing certificate) which google strips off after you upload your apk to play console.


Setting a Release Key Hash

To authenticate the exchange of information between your app and the Facebook, you need to generate a release key hash and add this to the Android settings within your Facebook App ID. Without this, your Facebook integration may not work properly when you release your app to the store.
Some users try facebook login and they get this error screen 



Copy This Has Key which u saw in App and Go do developer Facebook console Put this inside setting and Problems will be solved.


Final Place release has key as shown below 

 BINGO FACEBOOK LOGIN NOW WORK 

Post a Comment

0Comments

Post a Comment (0)