Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Devfest SouthWest, Nigeria - Firebase

Devfest SouthWest, Nigeria - Firebase

This presentation contains an introduction to Firebase and walks through a code-lab for creating a real-time Android Chat application with offline functionality.

Moyinoluwa Adeyemi

November 28, 2015

More Decks by Moyinoluwa Adeyemi

Other Decks in Technology


  1. Hosting Free static asset hosting SSL certificate Global CDN Single

    command deploys One-click rollbacks Custom domains
  2. So you want to learn how to build a realtime

    mobile chat application with Firebase?
  3. Add the library dependency directly to your app’s gradle.build file

    In cases of build errors caused by duplicate files, exclude those files by adding these too
  4. Edit your AndroidManifest.xml file First, request an INTERNET permission in

    the <manifest> tag Next, change the name of the application
  5. Send a message to Firebase Create a new Activity, complete

    with a layout that looks better than this. Be sure to add a <ListView />, an <EditText /> for collecting messages and a <Button /> for sending the data.
  6. Send a message to Firebase Create a reference to Firebase

    in the Activity and insert your own firebase url.
  7. Retrieve a message from Firebase Create a layout for the

    chat. It could look like this, or even better
  8. Woohoo!!! You now have a very basic Firebase app that

    sends, receives, displays messages and functions offline.
  9. Credits The official Firebase Chat App example was modified to

    produce this app. The complete app including Login functionality implemented with Firebase is available on Github here: https://github.com/moyheen/LagosFirebaseCodelab