Disclaimer: This is a simple ionic 4 chat app with firebase for fun only.
Objective: This is ionic based chat app with firebase. There are two authorities one is admin and second is user. User can chat only with admin and admin can chat with all users of the app.
git clone https://github.com/SATPAL-BHARDWAJ/ionic-messenger-firebase.git
npm install firebase
Go to api.service.ts and add following configuration
const config = { apiKey: "your_api_key", authDomain: "project_id.firebaseapp.com", databaseURL: "https://project_id.firebaseio.com", projectId: "project_id", storageBucket: "project_id.appspot.com", messagingSenderId: "sender_id" };
We are using this single code for both user and admin.
- Go to config.xml
- change to app id to io.ionic.userMessenger
- go to api.service.ts
- set admin: boolean = false;
Then run build command
ionic cordova build android
- Go to config.xml
- app id will be io.ionic.adminMessenger
- go to api.service.ts
- set admin: boolean = true;
Then run build command
ionic cordova build android
You can also check our other Ionic related updates here.
You can subscribe our blog to get the notification of the new version of this app.
If you have any question or suggestion, you can comment below. I really want to hear from you.
Today we are going to learn about managing multiple PHP versions on ubuntu with xampp.…
Let's understand about how to use coding to improve your website's SEO. In today’s computerized…
Let's understand the most important linux commands for web developers. Linux, as an open-source and…
Today we are going to discuss top 75+ Laravel interview questions asked by top MNCs.Laravel,…
Today we will discuss about the Mailtrap integration with laravel 10 .Sending and receiving emails…
Today we are going to integrate FCM (Firebase Cloud Messaging) push notifications with ionic application.Firebase…
View Comments
admin authentication error
user can easily logged in by their credentials but admin panel says "there is no user record to this identifier the user may have been deleted"
please help
Hi, Vivek
I have mail to you about it. please check your inbox.