Simple Chatting Apps built using Realtime NoSQL Firebase Database + Firebase Authentication

in #utopian-io8 years ago (edited)

Screen Shot 2017-12-30 at 10.54.22 PM.png

Chat is the style of young people today. Before the chat most people prefer to SMS. But the feature of SMS is very limited, this is what developers think the apps to create an application similar to SMS, but has features that are far superior. And in the end emerged Android Chatting Applications Diverse as it is today.

This application I created to show the concept of sending messages using chat applications and the use of two firebase features of the features NoSQL realtime database and Email Authentication

DEMO



Screen Shot 2017-12-30 at 10.47.53 PM.png

Screen Shot 2017-12-30 at 10.48.11 PM.png

Setting In Firebase Console.

Go to https://console.firebase.google.com and make an account to gain access to their console. After you gain access to the console you can start by creating your first project.

Screen Shot 2017-12-30 at 11.18.48 PM.png

The next step:

  • Give the package name of your project
  • Give your project id
  • Select your country
  • after that, go to your project dashboard. Find the Auth and click get started. Go to set up sign in method and choose Email & Password and enable it.

    Screen Shot 2017-12-30 at 11.22.13 PM.png

    Setup your firebase database rules like this

    {
      "rules": {
        ".read": "auth != null",
        ".write": "auth != null"
      }
    }
    

    Screen Shot 2017-12-30 at 11.23.10 PM.png

    Now it's time to continue the configuration to our Android process using android studio. This time I will create a simple application that contains firebase authentication and realtime database chat. Login Password Registration, Forgot Password, Change Email, Change Password Sign Out, Submit chat and history chat.

    How To Adding Firebase Database in This Android Studio Project

    We realize that the current development and popularity of no-sql. So, I implemented a realtime no-sql firebase database on this project.

    This is how I Implemet firebase database in this project

  • Go to tools -> Firebase, it will open an assistant. Now from the assistant go to Realtime Database.
  • satu.png

  • Connect to Firebase Project and Setup the dependencies.
  • dua.png

  • Now lest back again , Go to tools -> Firebase and select Authentication -> Email and Password Authentication -> Add Firebase Login to your App.
  • Once you’ve set up this application like that three steps, There will be a change in the build.gradle file of your application module, like this following code:

    Screen Shot 2017-12-30 at 11.07.11 PM.png

    Now we are ready to use Firebase Database And Firebase Authentication in this project.

    EXAMPLE AUTHENTICATED USER DATA LIST

    Screen Shot 2017-12-30 at 11.22.00 PM.png

    EXAMPLE NO-SQL REALTIME FIRECHAT DATABASE

    Screen Shot 2017-12-30 at 11.26.09 PM.png

    GITHUB LINK



    https://github.com/iqbal09/FireChat

    PROOF OF WORK



    Screen Shot 2017-12-30 at 10.49.56 PM.png



    Posted on Utopian.io - Rewarding Open Source Contributors

    Sort:  

    Thank you for the contribution. It has been approved.

    You can contact us on Discord.
    [utopian-moderator]

    Hi, @vladimir-simovic thanks for the approval :)

    very good post

    Very good and Thankyou 👍

    Hey @iqbalhood I am @utopian-io. I have just upvoted you!

    Achievements

    • You have less than 500 followers. Just gave you a gift to help you succeed!
    • Seems like you contribute quite often. AMAZING!

    Community-Driven Witness!

    I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

    mooncryption-utopian-witness-gif

    Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

    <php

    $iqbalhood = "thanks for sharing really helpful";
    echo $iqbalhood;

    ?>

    Coin Marketplace

    STEEM 0.04
    TRX 0.32
    JST 0.075
    BTC 63426.05
    ETH 1663.52
    USDT 1.00
    SBD 0.43