App Signing Key
Hi friends,
Today you will learn:
How to create a jks or keystore or app signing key file
How to get SHA1 key from that file
How to get Facebook Hash Key from SHA1 key
SHA1 key is required to Add Google login system in your android app.
and Facebook Hash is also required to Add facebook login into your app.
So first of all open Android Studio, and run as Administrator. Open your android project. Wait untill it finishes the build process.
Then goto build menu -> click on Generate Signed Bundel / APK, as shown in the below screenshot.
The a popup window will show, choose Any option between two then click on the next button as shown:
Then a new popup window will shown then click on the button – Create new as shown in the image:
Then a new window will show to create a keystore file as below showing:
Then fill all the required details carefully,
Note down your password, alias name.
For example we have filled the details for your demo:
Now you have created your app signing key file successfully!
Now you have to put into android project.
Copy the created jks file from where you created,then open android studio project folder and paste it inside app folder.
Now all done.
How to create Release SHA1 Key for Firebase
Open Android studio Project, then on the right side on android studio look for Gradle click on it as shown in the screenshot:
Then gradle sidebar will open up then look for Task option -> expand it -> android -> signingReport -> double click on it to run, as shown in the below screenshot:
Now in the bottom window look for your release sginig SHA1 key, as shown in the below screenshot:
Now enter it in the firebase console as shown in the previuos video and tutorial.
Now its done.
Generate Facebook Login HASH Key
Facebook Login hash key is required to add facebook login into your app.
You can generate facebook hash key using SHA1 Key easily.
Copy yout SHA1 Key (created in above tutorial), then paste it here: Generate Facebook Hash Key Online Free
Now you can paste it on your facebook developer console.