# Create Project

## ![](https://docs.pixelstrap.net/laravel/taxido/assets/images/icons/firebase.png) **Firebase Setup:**

{% hint style="info" %} <i class="fa-bullhorn">:bullhorn:</i> NOTE :\
Before launching the app, ensure you have correctly set up the ADMIN LARAVEL and have added all necessary data through the admin panel.<br>
{% endhint %}

{% hint style="info" %} <i class="fa-bullhorn">:bullhorn:</i> NOTE : For Firebase Social Login, you need to enable billing on your Firebase account, as it is required.
{% endhint %}

## (1)  Create  Firebase Project

1. Go to Firebase [.](https://console.firebase.google.com/)<https://console.firebase.google.com/><br>
2. Now click on Create a new Firebase project \
   &#x20;<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FBr5lNINHQ9Rrph5zrttJ%2Fimage.png?alt=media&#x26;token=73c31400-22a7-4396-9664-329199af4e48" alt=""><figcaption></figcaption></figure>
3. Enter your project name and click on the Continue button.\ <br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FKIv9uRw4f4eaq397mzoz%2Fimage.png?alt=media&#x26;token=9e8f50b8-7c9b-4364-91b9-073923126415" alt=""><figcaption></figcaption></figure>

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2F8qCKgVpN9NalAH0aWky9%2Fimage.png?alt=media&#x26;token=189edecb-fafc-40d1-9a21-ab7337b790de" alt=""><figcaption></figcaption></figure>

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2F3eiDHEalbBzWABoOAkWM%2Fimage.png?alt=media&#x26;token=990fe758-82f2-48c5-8ac0-2bbec6483627" alt=""><figcaption></figcaption></figure>

4. Select an account and then click on the Create Project button.\ <br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FfqRZkFj3LG7dZigsGdKA%2Fimage.png?alt=media&#x26;token=96e6c712-83df-4e47-acd5-63a05e9ca0f7" alt=""><figcaption></figcaption></figure>

## **(2)** Create a Firebase App Project.

### **(2.1) Android :** &#x20;

1. Select an Android app in the firebase console.<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2F22FqyIniHxJf6tKd0Rf4%2Fimage.png?alt=media&#x26;token=afb08840-ebf4-4a6a-ad31-53fbc417aa4d" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2F2nlpp6eVOl0487dKQ9fb%2Fimage.png?alt=media&#x26;token=e71f20d9-1c7b-46e0-90e9-813d754af77c" alt=""><figcaption></figcaption></figure>
2. Write project package name and SHA-1 Key.\
   \
   ![](https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FKUfVC1mQXYSNk5GUTAnk%2Fimage.png?alt=media\&token=b3487f17-1c50-4c50-9efe-afa84c354ce9)<br>
3. Download google-service.json file and keep in project root directory<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FmWFnlCUkmSNw3vImNlY1%2Fimage.png?alt=media&#x26;token=7ab51073-62a7-49db-845c-ff7510584ad7" alt=""><figcaption></figcaption></figure>
4. Example Taxido(Project Name) -> android -> app<br>
5. Replace the file in "android/app"<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2F1Q9UDtv8zGoPVsYoyLJn%2Fimage.png?alt=media&#x26;token=6faf17ce-1af4-451f-8f83-5d8e0e53c745" alt=""><figcaption></figcaption></figure>
6. Update in project -> build.gradile<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FkOtkkfN3QXnLKAhc1Ahv%2Fimage.png?alt=media&#x26;token=f12f0cac-d3ca-465d-b6ec-95eab477ef19" alt=""><figcaption></figcaption></figure>
7. Update in project ->android -> app -> build.gradile

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FVnb29cPXCWF9XTmAmCl1%2Fimage.png?alt=media&#x26;token=cc74c17a-2d74-406b-ae7f-408350b5a5a9" alt=""><figcaption></figcaption></figure>

### **(2.2) IOS:**

1. Create an IOS or Android click on Add app<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FzPeBIz3sc8HfXdTGxn1p%2Fimage.png?alt=media&#x26;token=267ab75b-f857-4ffe-b4bf-ef93c00b9cf7" alt=""><figcaption></figcaption></figure>
2. Select an iOS app in the firebase console.<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2F5NYfjTpyJXeeu6irgzY0%2Fimage.png?alt=media&#x26;token=fc44296c-3882-4708-baa8-7562906ec5f5" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FmDH24KtSFFubbSBC3imt%2Fimage.png?alt=media&#x26;token=1c220ca5-be22-449e-9971-da61ba865cc6" alt=""><figcaption></figcaption></figure>
3. Write bundlid and APPID<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FolbGGawIdfpc0abmXnsf%2Fimage.png?alt=media&#x26;token=4890974e-f028-48a3-b87c-4023c30083d5" alt=""><figcaption></figcaption></figure>
4. Download the Googleservice-info.plist file<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FHLJlE0rSFOuoUXfCX1SI%2Fimage.png?alt=media&#x26;token=2a9116b7-c720-4ab7-a9ec-a6d222009e0e" alt=""><figcaption></figcaption></figure>
5. Replace the file in "ios/Runner/info.plist"<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FA8JcJQrJWZtOI28Qt5M7%2Fimage.png?alt=media&#x26;token=5117631d-cfff-44f2-b863-ca644186fee2" alt=""><figcaption></figcaption></figure>
6. Update "FirebaseApp.Configure()" in AppDelegate File<br>

   <figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FeFRNngF8JI61YwNEVAsY%2Fimage.png?alt=media&#x26;token=fd3168f2-3e58-427b-8287-8fd4c9ce8ede" alt=""><figcaption></figcaption></figure>
7. Navigate to Firebase Dashboard > Project Settings > Select your iOS User APP > Copy the “Encoded App ID” value and

```html
<key>CFBundleURLSchemes</key>
      <array>
      <string>PASTE ENCODED APP ID HERE</string>
      </array>
```

{% hint style="info" %}
Once you've finished setting up your Android and iOS Firebase projects, you can easily do this by following the instructions provided in the following link: [Firebase Rules](https://docs.pixelstrap.net/laravel/taxido/firebase-rules.html).
{% endhint %}
