Coder Social home page Coder Social logo

saharshpandey / messenger Goto Github PK

View Code? Open in Web Editor NEW
143.0 9.0 45.0 327 KB

Messenger(Chat app) is a real time one to one chat application with Push Notifications made using Firebase...

Java 100.00%
android java chat-application chatapp realtime-messaging firebase notifications messenger social-network social-media

messenger's Introduction

Messenger

If you want a APK then create an issue, i'll send the link..
ChatApp is a real time one to one chat application with Push Notifications made using Firebase...

Add yours google-services.json
Change Authorization:key with your key from firebase project


Implementation Guide
1 - Project
1 - Open the Project in your android studio;
2 - IMPORTANT Change the Package Name. (https://stackoverflow.com/questions/16804093/android-studio-rename-package)


2 - Firebase Panel
- Create Firebase Project (https://console.firebase.google.com/);
- Import the file google-service.json into your project
- Connect to firebase console authentication and database from your IDE
- in firebase Storage Rules, change value of "allow read, write:" from "if request.auth != null" to "if true;"
- For sending notification, paste your Firebase project key into your project APIService.java
- When you change database settings, you likely will need to uninstall and reinstall apps to avoid app crashes due to app caches.

Check out the design...

Welcome, Login, Signup, Forgot Password

Chats, Users, Profile Screens

Chat Screen, Friend Profile, Logout Menu

messenger's People

Contributors

saharshpandey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

messenger's Issues

Lag on the long run

Due to data pushing (.push()) on the long run, when there would be thousands of messages, it will cause a lot of lag for all of the users due to querying through each of the nodes individually.
I recommend, instead of creating a Chats node reference with all the messages spreaded, organizing the messages into ChatRooms where each child key inside of it is a combination of the senderUid and receiverUid. It could be made by string concatenation or, summing the ASCII values to BigInteger summing both but it's more complicated.
Example:

StringBuilder sb1 = new StringBuilder();
StringBuilder sb2 = new StringBuilder();
char[] myCharUid = myUid.toCharArray(); for (char ch : myCharUid)
{ sb1.append((byte) ch);
}
char[] hisCharUid = hisUid.toCharArray(); for (char ch : hisCharUid)
{ sb2.append((byte) ch);
}

String myStringUid = String.valueOf(sb1);
String hisStringUid = String.valueOf(sb2);

BigInteger myBigUid = new BigInteger(myStringUid);
BigInteger hisBigUid = new BigInteger(hisStringUid);

chatRoomId = String.valueOf(myBigUid.add(hisBigUid));

app is crashed

in main activity it shows change this comment i seen.

so please send full source code to this mail [email protected]

i hope u understand.

it's really good working , pls share the full source code.

please avoid ... app crashing..

Connectivity issue

I followed all the steps and added my Firebase details. I was able to create an account and even login to that account, but later on entering to the main page the app just gets stuck on loading. Can I get your final apk as well as the solution to my problem. Thank you

correct in this project

hello, tested your application, deleting messages from chat in firebase does not work for you.

Apk

Please send the apk

App crashing

Hi, I tried all steps in the read file but the app keeps crashing. I guess the problem is from the database but I don not know how to get it fix. I am newbie in Android. Kindly help me.

Register Screen

Hello dear Saharsh Pandey! Thank you for sharing your project. But register screen don't have next button users can not register to the app

server code

can i get the server code with which this client app connect with?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.