• Stars
    star
    186
  • Rank 207,316 (Top 5 %)
  • Language
    Dart
  • License
    MIT License
  • Created almost 4 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fully Functioning Messenger (Like Whatsapp) in Flutter

Logo

HitUp Messenger

A Fully Functioning Chat Messenger (like Whatsapp) built using Flutter.



Screenshot Screenshot Screenshot

About the project

  • Flutter for building the Android & IOS App.
  • Firestore database for storing user data.
  • Firebase Storage for storing images.
  • MQTT as messaging protocol hosted in AWS EC2.
  • SQLite for storing contacts & chats in Local Database.
  • OneSignal for Push Notifications.

Features

Super Fast Messaging using MQTT Protocol (MQTT is used by Facebook Messenger)

Architecture:

When you send a message from the app, the message first goes to the MQTT server. Then the MQTT server sends the message directly to the device of the client who is supposed to receive it. When received, the client stores the message in the local sqlite database first then shows it to the chat screen. (Firestore is in no way used to store or send text messages. Firestore is used only to store user & contacts data). To learn more about MQTT please refer here.


Phone Number Authentication Sign-in

Authentication is done using Firebase.

Screenshot Screenshot

Sending Images

Send & Receive Images (Snapchat style UI). The images are not stored in Gallery. Instead they are stored in the local sqlite database in bytes format.

Screenshot

Super Fast Loading of Messages (Using SQLite as Local DB to store messages)

Even when the client is offline, he/she can view the messages on opening the chat screen, because the messages are loaded directly from the local sqlite db. And that is the only place where the messages are stored. The MQTT server doesn't store old messages. The MQTT Server only stores the last message sent and then replaces it when a new message is sent.

Sending texts to Phone Contacts

On the Contacts Screen, you will get a list of all your phone contacts who are also using the messenger and can chat with them. (Just like sending messages to your contacts in Whatsapp)

Screenshot


Adding contacts using username. Sending & Receiving Friend Requests

You can also send friend request to someone using their username. On sending friend request, the other user will get a push notification & and a friend request. If he/she accepts the request then you will get an notification & will be able to chat with the user. (Same as the feature in Snapchat)

Screenshot

Block Contact

Screenshot

Realtime Push Notifications

Using OneSignal. User will get realtime push notifications (even when the app is closed) when

  • He/She receives a new message
  • He/She receives a friend request
  • Someone accepts their friend request

Notification



Change Profile Photo

Image Compression Before Sending

Emoji Support

Neumorphic UI

Invite Friends Feature


Other Important Information

Installation & Setup (Optional)

  1. Firebase

To change the firestore database, just replace the google-services.json in android/app to your own google-services.json file from your firebase account.

  1. MQTT Server

To transfer messages I am using an MQTT server which I have setup in a EC2 instance on AWS. For details on how to setup your own MQTT server please refer here : Setup MQTT Server on AWS EC2. Then change the serverAddress parameter in lib/functions/MQTTFunction.dart file, (connect() function) to the public address of your EC2 instance.


  1. OneSignal

First create an account in OneSignal. Then replace the app_id parameter in lib/functions/UserDataFunction.dart sendNotification() function with your own OneSignal app_id.

Motivation & Contribution

I want to build this messenger into the biggest open source messenger on the web with all functionalities from the top Messengers like Whatsapp, Telegram, Signal, Snapchat, etc. There a lot of features still to be added like end-to-end encryption, audio messages, audio/video calling, stories, etc. So, we are open to pull requests. Please contribute in any way you can, adding new features, finding or fixing bugs, adding to the documenation, better code commenting, etc.

Contributing

If you want to contribute to this project other than by coding, please contact me here [email protected]

License

MIT License

Supporters

Stargazers repo roster for @realdiganta/hitup-messenger Forkers repo roster for @realdiganta/hitup-messenger

More Repositories

1

ethereum-to-polygon-bridge

A Dapp for bridging your erc-20 tokens from ethereum to polygon (matic)
JavaScript
19
star
2

Contact-Tracing-App-TracerX

Prototype of a Contact Tracing App made using Flutter and Google's Nearby API.
Dart
18
star
3

poker-solidity

A semi-decentralized onchain poker game written in solidity
Solidity
16
star
4

Flutter-Stopwatch

A simple StopWatch made in Flutter
Dart
11
star
5

Neural-Signal-Processing-Analysis

Python Implementation of the Matlab Problem Sets from MX Cohen's Neural Signal Processing Course
Jupyter Notebook
11
star
6

polygon-stablecoin-strategy

Solidity
9
star
7

real-time-tf

Real time Time Frequency Plotting of EEG data from muse headset
Jupyter Notebook
7
star
8

evm-storage-crawler

A dapp to read the private storage variables of a smart contract from the EVM.
JavaScript
6
star
9

video-thumbnail-generator

A Flutter Plugin for creating a thumbnail from a Video URL
Dart
5
star
10

eeg-deep-learning

Using Deep Learning with various EEG datasets
Jupyter Notebook
3
star
11

eth-usdc-polygon-yield-farming

Solidity
3
star
12

Gambler-s_Problem

Solving the Gambler's Problem using Value Iteration from the book Reinforcement Learning (2nd Edition) by Richard S. Sutton and Andre G. Barto
Python
3
star
13

sol-rock-papers-scissors

JavaScript
2
star
14

Http-request-Flutter

Flutter example showing how to make a http request
Dart
2
star
15

gridworld

Coding the GridWorld example from David Silver's Reinforcemnet Learning Course in Python
Jupyter Notebook
2
star
16

wbtc-usdc-Badger-Strategy

Solidity
1
star
17

badger-rewards-manager

New Rewards Manager contracts for badger dao
Solidity
1
star
18

cryptography-scripts

A collection of scripts for solving popular cryptographic problems
Python
1
star
19

punk-stablecoin-yield-strategy

Solidity
1
star
20

solidity-inline-assembly

solidity contracts in inline-assembly
Solidity
1
star
21

damn-vulnerable-defi-v2-solutions

Solution to all the 12 Damn Vulnerable DEFI challenges
Solidity
1
star
22

onchain-identity-solution

On chain identity solution for the Sovryn Protocol
Solidity
1
star