All Projects → Mindinventory → Ionic Chat With Firebase

Mindinventory / Ionic Chat With Firebase

Licence: mit
IONIC Chat With Firebase

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ionic Chat With Firebase

Chat Realtime
Public & Private message. MySQL & Firebase.
Stars: ✭ 147 (+177.36%)
Mutual labels:  firebase, chat, chat-application
Chat21 Ios Sdk
DEPRECATED
Stars: ✭ 15 (-71.7%)
Mutual labels:  firebase, chat, chat-application
Falconmessenger
🌟🌟🌟🌟🌟 Falcon Messenger is a Fast and Beautiful cloud-based messaging app. With iOS and IPadOS Support. Available on the App Store.
Stars: ✭ 310 (+484.91%)
Mutual labels:  firebase, chat, chat-application
Chatair Android
🔥 A highly advance featured chat app in android using Firestore
Stars: ✭ 132 (+149.06%)
Mutual labels:  firebase, chat, chat-application
Space
A real time chat app for developers built using React, Redux, Electron and Firebase
Stars: ✭ 161 (+203.77%)
Mutual labels:  firebase, chat, chat-application
Chat21 Android Sdk
Android Chat SDK built on Firebase
Stars: ✭ 204 (+284.91%)
Mutual labels:  firebase, chat, chat-application
Messenger
Open source, native iOS Messenger, with realtime chat conversations (full offline support).
Stars: ✭ 4,264 (+7945.28%)
Mutual labels:  firebase, chat, chat-application
Chatapp
Chat App with all functionality private chat, contacts, friends request, find friends,for profile settings image cropper functionality, settings, logout also send text, image and all type of files, delete your files for you and everyone , login with email and mobile number and real time database firebase and for notification purpose Node Js used.
Stars: ✭ 25 (-52.83%)
Mutual labels:  firebase, chat-application
Date
A dating app that creates meaningful connections through food (Push notifications, Firebase, Chat, Schedule Calendar, Onboarding, Social media Login)
Stars: ✭ 29 (-45.28%)
Mutual labels:  firebase, chat
Vuejs Slack Clone Realtime
Slack clone using VueJS and firebase
Stars: ✭ 33 (-37.74%)
Mutual labels:  firebase, chat
Whatsup
**Deprecated** Real time chat app written in Swift 4 using Firebase and OTP Authentication
Stars: ✭ 39 (-26.42%)
Mutual labels:  firebase, chat-application
Chat Messaging App Light And Dark Theme
Stars: ✭ 715 (+1249.06%)
Mutual labels:  chat, chat-application
Chat
Instant messaging platform. Backend in Go. Clients: Swift iOS, Java Android, JS webapp, scriptable command line; chatbots
Stars: ✭ 8,238 (+15443.4%)
Mutual labels:  chat, chat-application
Darkwire.io
End-to-end encrypted instant web chat
Stars: ✭ 594 (+1020.75%)
Mutual labels:  chat, chat-application
Firebaseandroidchat
Chat with features : Login with Google | Send Photo Camera | Send Photo Gallery | Send Location
Stars: ✭ 571 (+977.36%)
Mutual labels:  firebase, chat-application
Ionic Firebase Chat
Create a Real Time Chat App with Ionic && Firebase
Stars: ✭ 33 (-37.74%)
Mutual labels:  firebase, ionic
Swiftychat
SwiftUI Chat UI (Client) Framework & Documentation to get started!
Stars: ✭ 50 (-5.66%)
Mutual labels:  chat, chat-application
React Bell Chat
🔔 Easy to use chat user interface for React
Stars: ✭ 38 (-28.3%)
Mutual labels:  chat, chat-application
Kotlin Firebase Group Chat
Group and OneonOne chat using firebase built in Kotlin similar to whatsapp.
Stars: ✭ 44 (-16.98%)
Mutual labels:  firebase, chat
Flutter Chat Demo
The chat app made by Flutter and Firebase
Stars: ✭ 1,016 (+1816.98%)
Mutual labels:  firebase, chat

IONIC chat with firebase

Ionic Firebase Chat is a sample chat widget powered by Firebase.

Technologies used:

  • Ionic Framework (v3)
  • Firebase 3 (we’re not going to use AngularFire)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. What things you need to install the software and how to install them

Prerequisites

First, we need to create new project in firebase

Step 1:

Login with your Firebase (https://firebase.google.com) & create new project

alt text

Step 2:

Click “add firebase to your web app” & get keys

alt text

Creating Ionic Project

Once we created project from firebase, we can set up new Ionic project for our chat application

Create new Ionic project

ionic start  --v2 ionicfirechat blank

Change your working directory

cd ionicfirechat

Add your platform (if required)

ionic platform add android
ionic platform add ios

Installing & Setup Firebase (app.component.ts)

Add firebase node_modules to your project

npm install firebase --save

import firebase in app.component.ts

import * as firebase from 'firebase';

Add configuration to app.component.ts; Replace with your Firebase Configuration

let config = {
 apiKey: 'YOUR_APIKEY',
 authDomain: 'YOUR_AUTH_DOMAIN',
 databaseURL: 'YOUR_DATABASE_URL',
 projectId: 'YOUR_PROJECT_ID',
 storageBucket: 'YOUR_STORAGE_BUCKET',
 };
firebase.initializeApp(config);

Creating UI for chat (home.html)

<ion-header>
  <ion-navbar>
    <ion-title>chat</ion-title>
  </ion-navbar>
</ion-header>


<ion-content padding>
  <div id="chatMessage">
    <div class="message" *ngFor="let message of messages">
      <div [class]="message.userName == user ? 'innerMessage messageRight' : 'innerMessage messageLeft'">
        <div class="userName">{{ message.userName}}</div>
        <div class="msg">{{ message.message}}</div>
      </div>
    </div>
  </div>
</ion-content>

<ion-footer>
  <ion-toolbar>
    <ion-input type="text" name="message" placeholder="Message" [(ngModel)]="message"></ion-input>
    <ion-buttons end>
      <button ion-button icon-right color="royal" (click)="sendMessage()">
        <ion-icon name="md-send"></ion-icon>
      </button>
    </ion-buttons>
  </ion-toolbar>
</ion-footer>

alt text you need to open the src/app/app.module.ts file and replace below code with your configuration settings:

Sending Messages to Firebase When user clicks send button we need to call send() to insert messages into firebase & clear existing messages

sendMessage(){
    this.db.list('/chat').push({
      userName: this.user,
      message: this.message
    }).then(() => {
      this.message = ''
    })
  }

Reading Messages from Firebase When user created new message, we need to display inside

 this.db.list('/chat/').valueChanges().subscribe(data => {
      this.messages = data
    });

Running the tests

Run below command line for automated tests of this system

  $ionic serve

LICENSE!

CoverFlow is MIT-licensed

Let us know!

We’d be really happy if you sent us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding our work.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].