Chat/Messaging Module – Configuring Firebase Settings

In order to activate the Chat/Messaging module in your application, you must perform the following steps completely.

Chat module is currently only available for Android applications.

Image

On the Content tab, click the Activate button below the Chat/Messaging module.

Image

You will see a warning message. You must activate the Chat/Messaging module in your application with Go to Membership Page option.

Image

After activating the membership module, you must add the Membership Screen Logo and Membership Screen Background images. Afterward, turn on Activate Chat. Go to https://firebase.google.com/ to fill in the fields that appear.

Image

If you don’t have a registered Gmail account, first of all, log in to your Gmail account. After logging in or if you already have a registered Gmail account, click the Go to Console button at the top right of the screen that appears.

Image

We continue by clicking the Add project button.

Image

Project Name: Type your application name in this field.

Analytics Location: Select your country in this field.

Cloud Firestore Location: Do not change this option, it may remain as it appears.

Read and confirm the conditions for the two boxes below.

Click Create Project button.

Image: On this screen, click on the Continue button under Your New Project Ready notification.

On the “Start your application adding “Firebase” to your application” screen, click Android option and continue.

Image

Android package name: Type the package name you specified when you were creating your APK here. For detailed information about the package name, you can read our relevant article by clicking What is the package name? 

Image

Leave the other steps blank and click the Save Application button. On the following screen, close the page without any action.

Image

From the left-hand tab, click Develop> Authentication. Select Email / Password from the Login Procedure field on the page that opens and activate the option at the top and click Save.

Image

Image

When you click the save button, E-Mail / Password option will be activated.

Afterward, select Database from the left-hand tab and click the Create database button on the main screen.

Image

On the screen that appears, select Start in locked mode and click the Activate button.

Image

Then click the Cloud Firestore button on this screen;

Image

Click on the Realtime Database that two options appear on the screen.

Image

Copy the URL on the screen that appears, this is the Firebase Database URL. Paste this link into the corresponding area in the Chat / Messaging module in the MobiRoller panel.

Image

After pasting the link, click the Rules button.

Image

Delete the entire code snippet here, copy and paste the following code snippet here and click the publish button.

CODE

If you return to the Database screen through the panel, the codes will be reset due to an error in Firebase and you will be receiving the error before you use your application. So after you paste and publish the code, go directly to the next step.

Afterward, click on the Settings button next to the Project Overview field on the left side to select the Project settings. 

Image

Copy and paste the Web API key on the screen that appears and pastes it into the Web API key field in the Chat / Messaging module in the MobiRoller panel.

Image

Furthermore, You must copy the Application ID at the bottom of the page on the same screen and paste it into the Application ID field in the Chat / Messaging module in the MobiRoller panel. 

Image

As another step, click the Cloud Messaging tab at the top, copy the token portion of the Server Key and add it to the Firebase Server Key field in the Chat / Messaging module in the MobiRoller panel. Copy the Sender ID and add it to the Sender ID field in the Chat / Messaging module in the MobiRoller panel.

Image

You can add the Chat / Messaging module to your application by clicking on the Save button and use it in your application.

Image

Any changes you make to your Chat / Messaging settings will be active with the new APK generation. Once you’ve completed your change, go to the Dashboard tab to create a new APK and control your app with your new APK.

If you think you’ve done all the steps correctly, but you keep getting this error;

Point to the Settings button and click Users and Permissions.

Image

You need to give authority to [email protected] with the add member button and send your e-mail with a screenshot of the error you received to [email protected].

Image

As soon as we examine your error and we will be resolved.