Before you can integrate Google Sign-In into your website, you are required to have the Web client ID and Web client secret. For that, you must create a Google Firebase Console project.
Follow these steps to integrate the Google sign-in to your store:
- Go to Google Firebase Console.
- Click on Add Project.
- In the pop-up window opened, select the Project Name from the drop-down. Select the checkbox to agree to the terms and conditions.
- Click on Add Firebase button.
- The Firebase dashboard is then displayed as follows.
- In the Firebase dashboard, click on the Android icon to create an android project.
- In the next step, you are required to register your app.
- Enter the package name of your app which you can find in the Mobile App section in the StoreHippo Admin panel. It should be in the format com.storehippo.appname.
Provide the SH-1 certificate. In case you are using StoreHippo inbuilt Android build then enter the SHA-1 as 15:27:AE:98:AA:0F:93:05:4F:6A:1E:F1:99:1E:88:D9:33:29:AA:AE.
- Click on the Register app button.
- Now, download the configuration file and click on Next.
- Click on Skip the steps.
- Now, in the firebase dashboard, go to the Developer section.
- Click on the Authentication and go to the Sign-in method tab. All the available sign-in providers are listed here.
- Go to Google sign-in and enable it.
- Click on the Web SDK configuration.
- Copy the Web client ID and Web client secret.
- Go to Mobile Apps > Mobile Apps in StoreHippo Admin Panel.
- Add/Edit the mobile app.
- Go to the Social Login tab.
- In the Google log-in settings, enter the Web Client ID.
Changes to be made to after publishing the app
Google Firebase re-signs your app with a new key on publishing. You must update your mobile app with the new signing key for the Google Login to work on your published.
Following are the steps
https://play.google.com/console/developers/app/keymanagement
- Go to Google console => Release Management => App signing => App signing certificate.
- Copy the SHA Fingerprint (as shown in the image)
Go to your app settings on Firebase and add the SHA Fingerprint key.
You should be able to use Google Login on your published app now.