Instant Chat – Android Source Code And PHP Backend

Overview

Instant chat “one to one chat ” depends on backend in php 5 and above
and mysql for web services 
and firebase cloud messaging 
for notifications for receiving messages or friend requests or accept friend requests .

Features

1 – Chat UI is almost similar to Whatsapp .

2 –  application has 2 languages english , arabic

3 –  tablet support

4 – it depends on backend in php 5 and mysql for web services 

and firebase cloud messaging 
for notifications for receiving messages or friend requests or accept friend requests .

5 – Storing history of chats in the backend mysql database and in local sqlite storage 
in the android device .

6-  main screen has 3 tabs or you can display one tab by editing settings and choose show in menu 
Friends list with circular image, name and their status .

Friend Requests list  .

send text , emoticons , imaages from camera or gallery .

add friend by email , accept or cancel friend request .

7- user can update his email , name , status , image and password

Requirements

  • Android Studio

Instructions

1 – extract Chat_Fcm_Android.zip and Open the extracted folder by Open An Existing Android Studio Project .
in package omar.apps923.chat_fcm.helper , edit base_url_server variable 
in file “WebServices” to be your ip either 

 
2 –  edit ndk path by : in Android Studio go to File / Project Structure /

SDK Location / Android NDK Location 

note : NDK is just used by  Android Asynchronous Networking and Image Loading “ion”

https://github.com/koush/ion

3 – in local host or online 
 extract Chat_Fcm_Php.zip and upload the extracted folder “chat_fcm”
 online on your host server or on your local host like xampp

4 – create database  chat_fcm with collation utf8mb4_general_ci and import
databse from file”chat_fcm.sql” in sql folder

5 – for recovering your forgotten password , we send email
 from certain email you specify to the user hwo forgets the password
you can specify this email by replacing
[email protected] and yourpassword
  in  file
“sendPHPMail.php” 
in rest_api/utilities folder to be what you want

6 – if you want to use your own firebase account , register on firebase console 
and follow this link 
https://firebase.google.com/do…
 and edit value of 
API_ACCESS_KEY in  file
“firebaseNotification.php” 
in rest_api/utilities folder to be the one that is in your own firebase in
Overview / Project settings / CLOUD MESSAING / server key

Related