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 :- Click on
Gradle
(From Right Side Panel, you will see Gradle Bar) - Click on
Tasks
- Click on
Android
- Double Click on
signingReport
(You will getSHA-1
andMD5
)
2. Add new credentials to API Console
- Go here https://console.developers.google.com/apis/credentials
- Create new
OAuth Client ID
- Name :
Android client (for debug)
(example) - Signing-certificate fingerprint : Copy paste you
SHA-1
debug key - Put your package name then saved
3. Add your key to your
Firebase
project :- Go to
Project settings
->SHA certificate fingerprints
-> AddSHA-1
key of debug app. - 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:
- Open the Credentials page in the GCP Console.
- 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