# Firebase Messaging

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

{% hint style="warning" %} <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.\
Before import json in firestore database remember to give rule permission or create Firestore Data. See the [Firebase Rules for create Firestore Database and how to give permission](https://docs.pixelstrap.net/laravel/taxido/firebase-rules.html) in firebase.
{% endhint %}

{% hint style="warning" %} <i class="fa-bullhorn">:bullhorn:</i> NOTE :\
Remeber to add Firebase downloaded json file for Notification
{% endhint %}

1. Go to your Firebase Project in that left hand side panel click on setting&#x20;

<figure><img src="https://docs.pixelstrap.net/laravel/taxido/assets/app/screenshot/sha4.png" alt=""><figcaption></figcaption></figure>

2. In that click on Servie accounts. In that tab click on button Generate new private

<figure><img src="https://docs.pixelstrap.net/laravel/taxido/assets/app/screenshot/fm1.png" alt=""><figcaption></figcaption></figure>

3. After click on button confirmation dialog will be open in that click on Generate Key button.

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FtwDuBCy14FLEaTQqGmSs%2Fimage.png?alt=media&#x26;token=63b36f5a-f374-433e-a379-e00b8c7b560c" alt=""><figcaption></figcaption></figure>

4. As soon as you click on the button with your project name the .json file will be downloaded.
5. Open the .json file in your VisulStudio or Text editor file then copy that file.
6. Go to the firebase project -> Product categories -> Run -> Remote config. In the Remote config Click on the Create Configuration button.

<figure><img src="https://74030740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6o4UzjBZtMQpeq4oeh8s%2Fuploads%2FlVeJYg3KsMvauvg47Gvj%2Fimage.png?alt=media&#x26;token=ba048752-982c-4988-88b6-6a8779fbe896" alt=""><figcaption></figcaption></figure>

7. Add firebase\_credentials key to parameter name (key) and select data type JSON. Whatever JSON file you have copied, you have to paste it in the Default value. After that Click the Save the Button.

{% hint style="warning" %}
Now go to the Firebase Social Login: [Firebase Social Login](https://docs.pixelstrap.net/laravel/taxido/social_login.html).
{% endhint %}
