Introduction

DreamsChat - WhatzClone an application that allow to have a Firebase chat with friends (Like WhatsApp). You can send and share (images or videos or audio or pdf) ...etc. there is a database local to save your messages , so when user lost the internet connection he can write a message ,the message will be saved on database local and once the other user come online the app will send your message directly .Also you can delete conversation or messages .Feel free and enjoy the new emoticons .For the Backend side you can control your app as you want even you can control and settings up the Admob from the dashboard.

Product Features

  • Login with mobile number
  • One to one chat
  • Group chat
  • Status
  • Video call and Audio Call
  • Profile

Installation Procedure for Android

Setup
Project Android
(Android Studio)

1. Download Android Studio if you still don't have follow the below link for downloading: https://www.geeksforgeeks.org/guide-to-install-and-set-up-android-studio/

2. After downloading Android Studio, double click the downloaded file, click next for all. It will take a few minutes for installation.

3. After this installation, open your project and run it.

Change App Name

1. To change the common app name in the application, Click app -> src-> main -> res -> string.xml -> app_name . Change the app name here, the whole application App name text will be changed.

Change App Colors

1. To change the app color in the application, Click app -> src-> main -> res ->colors.xml. From this file, you can change the common app color. If you change the app color here, the whole application theme will be changed.

Change App Icons

First design the App Icon in 512*512 size. Right click to res ->New -> Vector Asset->Path. To Select Image Path From System. Then click next.

To Set App icon goto app ->Manifest -> AndroidManifest.xml->android:icon

Agora Configuration

1. First Create your agora account, by clicking this link,

https://www.agora.io/en/

2.Create the account by the following steps.

3. Create new project by providing the project name and click create

4. Click next and close in next steps.

5. Create the new project by providing the project name and make sure the testing mode is enabled and submit

6. Change the app to live and save the project and make sure the app primary certificate is disabled

6. Copy the app id. Open Android project and Click App > Src > Main > res > values > Strings.xml and place the agora key in “agora_app_id” Place.

Adding Firebase to Android App

Below are the steps to include Firebase to Android project in Android studio

Firebase Console: https://console.firebase.google.com/

1. Create a new project in the firebase by clicking on the Add project.

2. Enter project name and press continue

3. Accept terms and conditions and press create project

4. Now add this project to the android app

  • Click on the Add firebase to your android app option on the starting window.

A prompt will open where to enter the package name of the app. Also, the SHA1 certificate, can be given, of the app by following steps.

Open android studio - Right side corner select Gradle - Root folder - Tasks - android - select SigningReport.

Copy SHA1 code and paste into firebase press register app button

5. Donwload JSON file paste into android studio and press next button

6. Add dependencies to project and press next and press continue to console.

7. Select authentication menu is located in left side menu. Select sign-in-method - click phone option - use toggle button to enable phone authentication and press save button

8. Select database menu and click create database button

9. Select Rules tab change read and write rules as true and press publish.

10. Enable Cloud Messaging API. and copy the Server key

11. Paste the Server key here (Click app -> src-> main -> res -> string.xml -> firebase_server_key)

Enabling Location Services

API Console: https://console.developers.google.com/

1. Select your project from dropdown and click + Enable APIS and services.

2. In Search box type “token service api” and select the item

3. Enable Token Service API by clicking the button.

4. In Search box type “cloud messaging” and select the item and select enable button.

5. In Search box type “Identity toolkit api” and select the item and select enable button.

6. In Search box type “Firebase Installations API” and select the item and select enable button.

7. In Search box type “Maps Static API” and select the item and select enable button.

8. In Search box type “Maps SDK for Android” and select the item and select enable button.

9. In Search box type “Places API” and select the item and select enable button.

10. Add project to billing account.