hashkey mismatch error android faebook app - react-native

i created a react native android app. and then was using react-native-fbsdk to authenticate user using facebook..t i have registered the app in facebook developer portal and changed my manifest file and string file. when i launch the LoginManager.logInWithPermissions(['public_profile', 'email']) it authenticates and brings me to facebook, signs in and then gives me error "The key hash does not match any stored key hashes. Go to https://developers.facebook.com/docs/facebook-login/android for more information.".
i have created the hashkey with teh command in the help documenation with both the options here:
1.
keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%.android\debug.keystore | C:\Users\manshuk\Downloads\openssl-0.9.8k_X64\bin\openssl sha1 -binary | C:\Users\manshuk\Downloads\openssl-0.9.8k_X64\bin\openssl base64
and using the debug.keystore of the app itself like this:
keytool -exportcert -alias androiddebugkey -keystore android/app/debug.keystore | C:\Users\manshuk\Downloads\openssl-0.9.8k_X64\bin\openssl sha1 -binary | C:\Users\manshuk\Downloads\openssl-0.9.8k_X64\bin\openssl base64
i added the key in the app in facebook. in app setting, facebook.

Im not saying this works all the time. But, this worked for me.
First get you sha-1 (Read the code, youll have to EDIT it)
keytool -list -v -keystore "C:\Users\EDIT THIS\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
paste that in your Command prompt.
Now copy your sha-1
GO HERE > https://tomeko.net/online_tools/hex_to_base64.php
Paste your sha-1 key in the "HEX STRING:"
Copy the value of Output (base64):
Now paste that in your fb developer app hash keys
Save, delete your app in your phone, re-install, run.

Related

How to get SHA1 key in my Windows I tried many ways but no use

I'm not able to get SHA1 key for Firebase project. How can I do that? I'm using Angular.
I tried this one:
keytool -list -v \ -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore

The key hash does not match any stored key hashes in facebook react-native app

I ma working on react-native latest version 60+. I am integrate the facebook login on debug mode but get the issue error:
Error: SERVER_ERROR: [code] 1349195 [message]: The key hash does not match any stored key hashes. Go to https://developers.facebook.com/docs/facebook-login/android for more information. [extra]:
I am open the new terminal and got the key hash using is command:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
And add the bebug key hash on facebook developers. But I am get the error.
Try to use file in android/app/debug.keystore
cd <your project>
then
keytool -exportcert -alias androiddebugkey -keystore android/app/debug.keystore | openssl sha1 -binary | openssl base64

How to upload a new apk to Google Play Console (react-native)

My previous keystore was lost and I contacted the Google Support team and generated a new upload key using the command below.
keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks
Now I have the upload_certificate.pem file and the support team stated that they reset the key and I need to upload the new version of my application to the Google Play Console.
I have tried to upload once they reset it once before by generating an apk file as mentioned in the tutorial below.
Generate release mode APK for React-Native project to publish on PlayStore
But it doesn't work. Getting this error. Is there anything that I am doing wrong?

ERROR:either bundle id or package name / hash are invalid, unknown, malformed

I am using react-native-linkedin-login npm when clicking on login button of linkedin app then alert generate like it
ERROR:either bundle id or package name / hash are invalid, unknown, malformed
I have have entered the right hash key and package name in linkedin developer account which generate using this command on terminal
keytool -exportcert -keystore ~/.android/debug.keystore -alias androiddebugkey | openssl sha1 -binary | openssl base64
i am working on react native applicaton social login
Make sure you are not modifying the APK in any way.
After signing the APK (debug build) I was manually editing the APK contents and this was causing the LinkedIn social login app to get suspicious. It seems like it validates your app's signing key. For me this was failing because I had mangled the APK.

Enterprise Mobility Manager - " Authentication Failed " issue on Mobile Phone

While I'm trying to register with my phone, I'm getting this error:
Authentication Failed
UPDATE 3.18.14;
Okay , i compiled .apk file correctly with correct .bks file .Still i'm getting same error ! Should i change hosts file in my phone(samsung NOTE 3) ?
NOTES:
In application conf, server address: 192.168.1.100
I can connect on mobile browser with https://192.168.1.100:9443
Just execute this command.
keytool -importkeystore -srckeystore CA.p12 -srcstoretype PKCS12
-destkeystore wso2mobilemdm.jks
CA needs to be the one you have used to sign your SSL certificate.
try creating all certificate in one folder.before creating ,just copy wso2carbon.jsk and client-truststore.jks in that folder.
try only single password wherever ask. but in last step use wso2_mobile when it ask.
copy wso2carbon.jsk, client-truststore.jks and wso2mobilemdm.jks from that folder to repository/resources/security folder to overwrite.
then in that folder copy bcprov-jdk15on-149.jar and run following command in that folder.
keytool -importcert -trustcacerts -keystore emm_truststore.bks -storetype bks -storepass wso2carbon -file ca_cert.pem -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath ./bcprov-jdk15on-149.jar
thats it you will see emm_truststore.bks in that folder.