Firebase Authentication

(part 2)

Published on November 4, 2021

🏷️ Tags: #kodular, #tutorials-and-guides, #google

Step 3. Add your project to Firebase

  1. Click on the gear icon, then select 'Project settings'.

2. Click on the Android icon.

3. Type in the app package name and your app name. DO NOT register it yet.

4. Go back to Kodular.

5. Select the account icon on the right-top corner, then choose 'Preferences'.

6. Copy the Keystore SHA-1 in the popup. Once you copied it, close the popup and go back to Firebase.

7. Paste the SHA-1 fingerprint in the last textbox and register the app by clicking on 'Register app'.

8. After loading, download the JSON file google-services.json. Make sure there are no numbers, like google-services(1).json. After downloading, go back to Kodular.

Step 4. Adding Firebase Authentication to your project

  1. Click on the Assets icon near the Designer button.

2. Upload the google-services.json file you just downloaded. After uploading, close the Assets Manager.

3. From the Google category, drag out a Firebase Authentication.

4. From the User Interface, drag out a Button that says 'Sign in with Google' and a label that says 'No email yet'. The phone should look like this:

Step 5. Blocks

Step 6. Testing your app out

Note: since your package name is not the package name of Kodular companion, do not test it with Kodular Companion. Compile/build the app to test it.

Great! You have finished this tutorial!

Make sure to check out the Kodular community for tips, and also try new things with the Creator!