# Google Sign-In

To enable the Google Sign-In feature, first you need to go to [https://console.cloud.google.com/welcome ](https://console.cloud.google.com/apis/dashboard?project=upheld-coast-377112)and register your project

## Create new project

<figure><img src="/files/Anas8H6P11VAaz44u5QP" alt=""><figcaption></figcaption></figure>

In the new window, click on the "New Project" button

<figure><img src="/files/N9mC01sDHiwPIVsmHOEQ" alt=""><figcaption></figcaption></figure>

Then, enter the name of your project

<figure><img src="/files/RFe2mMaM6GqFCRBg9j2d" alt=""><figcaption></figcaption></figure>

After creating the project, go to the project settings

<figure><img src="/files/8dAjW1wRd9MuciRqXprV" alt=""><figcaption></figcaption></figure>

Go to settings "**OAuth consent screen**" to create OAuth

<figure><img src="/files/EBClQjnSp4GIIBgyORlw" alt=""><figcaption></figcaption></figure>

Select the **External** item and click on the <mark style="color:blue;">**"CREATE"**</mark> button

<figure><img src="/files/jQBn2vFn3UqfDMTpZRoY" alt=""><figcaption></figcaption></figure>

Then you need to fill in all the required information for the project

<figure><img src="/files/dcbw6hA7ZiVZ8NvKcKcG" alt=""><figcaption></figcaption></figure>

Then click on the button at the bottom of the page. <mark style="color:blue;">**"SAVE AND CONTINUE"**</mark>

<figure><img src="/files/rOcQ5bgW7hhRBTkDBtAp" alt=""><figcaption></figcaption></figure>

Once you have filled everything in, you will have a project created, it will be in "Testing" mode, you will need to test the Google login, but in order to test, you will need to add a test user to start.

<figure><img src="/files/YlyaNH9tevSGLy9corSX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LxOm3qCaSoKO4o940RJh" alt=""><figcaption></figcaption></figure>

Next step: Go to Firebase console

<figure><img src="/files/FWFaCh2AHbLckzc6cdWV" alt=""><figcaption></figcaption></figure>

Then select android project, if you don't have project in firebase console, create project.

<figure><img src="/files/14qLI870ioC5g8iltgU4" alt=""><figcaption></figcaption></figure>

Нажмите на "Add fingerprint", и добавьте ключи SHA-1 приложения, чтобы получить ключи SHA-1, перейдите в Android Studio в ваш проект, и в терминале введите команда

> cd android
>
> ./gradlew signingReport

<figure><img src="/files/baVGZAWm2x9hBCY3HPn0" alt=""><figcaption></figcaption></figure>

После того, как вы добавили ключи SHA-1, перейдите в Google Cloud Platforms, перейдите в раздел Credentials

<figure><img src="/files/MNczLcg2KLLsXUtveE3i" alt=""><figcaption></figcaption></figure>

## **Android Setup**

Package name: Your application ID, you can find it in the AndroidManifest.xml file

<figure><img src="/files/dQPMkpLkbPlhYN2D9zNC" alt=""><figcaption></figcaption></figure>

### SHA-1 certificate fingerprint

To get the SHA-1 certificate fingerprint, you need to go to the project, open a terminal, and open the android folder through the terminal

<figure><img src="/files/N7ubW5sBhPzVscTRmrCq" alt=""><figcaption></figcaption></figure>

Then, you need to enter this command

{% hint style="info" %}
./gradlew signingReport
{% endhint %}

<figure><img src="/files/ksN7B92o06EsbSsoNWoQ" alt=""><figcaption></figcaption></figure>

Then in your terminal, the signingReport key will appear, select 2 types: debug and release

<figure><img src="/files/baVGZAWm2x9hBCY3HPn0" alt=""><figcaption></figcaption></figure>

## IOS setup

<figure><img src="/files/3sIgD5MrXjSTZ9pTIyOx" alt=""><figcaption></figcaption></figure>

You can find the Bundle ID in AppStoreConnect, on the "**Application Information**" tab&#x20;

After creating an OAuth Client ID, you can set up a project in Android Studio

<figure><img src="/files/PwHXNEtLsqx6skR9Vc53" alt=""><figcaption><p>Android Client ID</p></figcaption></figure>

<figure><img src="/files/uVb8lnjlVDioyKoEDOYB" alt=""><figcaption><p>IOS Client ID and IOS URL scheme</p></figcaption></figure>

## Project setup

### IOS Setup

{% hint style="warning" %}
If you don't have a project in Firebase, then you need to create it: [Firebase for IOS](/masterstudy-app-documentation/ios-app-build/firebase-for-ios.md)
{% endhint %}

If you have a project in Firebase then you need to find the file **Info.plist (ios -> Runner -> Info.plist)**

<figure><img src="/files/aRbqVUY9SaQ1UUPZsehQ" alt=""><figcaption></figcaption></figure>

You need to replace with your IOS Client ID (Reverse Client ID or IOS URL Scheme)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stylemixthemes.com/masterstudy-app-documentation/ios-app-build-1/firebase-for-ios.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
