Setup Instant Chat

📅 Published Jan 27, 2022
🗘 Updated Jul 30, 2026
3 min read

1. Installing Instant Chat Plugin

Firstly, download the instant chat plugin from the download links received in your email. From your WordPress admin panel, go to Plugins >> Add New and click on Upload Plugin

Upload your instant chat plugin and activate it.

2. Configuring Firebase Details

2.1 Create Firebase Project

Login to your gmail account and go to https://console.firebase.google.com/. Then, click on Create a new Firebase project.

Give a name to your Firebase project, and click on Continue.

Enable Google Analytics for the project and click on the Continue button.

Configure Google Analytics settings, and click on Continue.

Your Firebase project is now created. Click on the Continue button.

2.2 Register App

In your Project Overview, go to Project Settings and click on the Code icon

Give a nickname to your app and click on the Register app button.

When you receive the codes, click on the Continue to the console button.

2.3 Create a Realtime Database 

Now, go to Build and click on Realtime Database. Click on the Create Database button.

Select Database location and click on the Next button.

Select locked mode and click on the Enable button.

After the Realtime Database is created, go to the Rules tab and publish the following rules.

{
  "rules": {  
    "$chatRoot": {
        ".read": false,  
        ".write": false,  
        "$userId": {  
            ".read": "$chatRoot.matches(/_instant_chat$/) && auth != null && auth.uid == $userId",  
            "user": {  
                ".read": "auth != null && auth.uid == $userId",  
                ".write": "auth != null && (auth.uid == $userId || (newData.exists() && newData.child('sender_id').val() + '' == auth.uid))",  
                ".validate": "!newData.exists() || auth.uid == $userId || (newData.hasChildren(['sender_id', 'message', 'sent_date']) && newData.child('sender_id').val() + '' == auth.uid && newData.child('message').isString() && newData.child('sent_date').isString())"  
            }  
        }  
    }  
  }
}

Now, refresh the page and go to Project Overview and click on Project Settings.

Enable Firebase Authentication

Go to Authentication in the Firebase Console and click Get started. You do not need to enable Email/Password, Google, or other sign-in providers. Initializing Authentication is enough for the custom-token sign-in used by this plugin.

Link format: https://console.firebase.google.com/project/YOUR_PROJECT_ID/authentication

Add authorized domains

In Authentication → Settings → Authorized domains, ensure your WordPress site domain is listed.

Generate a service account key
  1. Firebase Console → Project settingsService accounts

  2. Click Generate new private key

  3. Save the downloaded .json file. You will upload it in WordPress admin

Finally, go to Firebase settings in your WordPress admin dashboard and enter Firebase Version as 8.8.1, paste all your Firebase configuration object containing keys and identifiers, and click on the Save Changes button. Leave the Firebase Database Prefix empty as it will be filled up automatically after saving the changes.

Service account (required for secure chat)

Upload the Firebase Service Account (JSON) file generated in Firebase Console.

Stored at:wp-content/uploads/app-storage/instant-chat-config/

Option name: wpdating_instant_chat_service_account_file

Without a service account, real-time chat will not authenticate, and notifications will fail once secured database rules are applied.

Congratulations! Your Firebase-based Instant Chat installation is completed.

If you have any difficulty in this process, or if you are not comfortable with WordPress and Firebase, you can contact our support team at support@wpdating.com.