- Open Android Studio.
-
Create a new project in Firebase. .
-
Connect your Android Studio Project with the Firebase. Your build.gradle(app) should have these included:
implementation 'com.google.firebase:firebase-auth:16.0.5' implementation 'com.google.firebase:firebase-database:16.0.4' implementation 'com.google.firebase:firebase-storage:16.0.4' implementation 'com.google.firebase:firebase-messaging:17.3.4' implementation 'com.firebaseui:firebase-ui-database:4.2.1'
-
Create a real time database in your firebase project. Structure of my database:
-
After being done with the front end development, it's time to implement push notifications onto the app. Notifications in this project is being implemented using
Firebase cloud functions
(using javascript). -
To push the javascript to the cloud functions, install node.js.
-
Open node.js command prompt and install firebase tools.
npm install -g firebase-tools
-
Login to firebase in the command prompt.
firebase login
-
Create a folder and inside that folder, initialize the firebase.
firebase init
-
Add the javascript code for getting push notification for messages on the device in index.js file and deploy it to the firebase cloud function.
firebase deploy
- Login via email or phone number, set user name, status and a profile picture.
- Send chat requests to your friends.
- You can now send messages, images or files to your friends.
- Delete for me/Delete for everyone feature included.
- Group chat feature available.
- Get notification on your device when someone sends you a message or a chat request.