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.

E803718649600ddffc1bc625d957e786?s=128

Moyinoluwa Adeyemi

November 28, 2015
Tweet

Transcript

  1. 5.

    Hosting Free static asset hosting SSL certificate Global CDN Single

    command deploys One-click rollbacks Custom domains
  2. 6.

    So you want to learn how to build a realtime

    mobile chat application with Firebase?
  3. 7.
  4. 9.

    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
  5. 11.

    Edit your AndroidManifest.xml file First, request an INTERNET permission in

    the <manifest> tag Next, change the name of the application
  6. 13.

    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.
  7. 14.

    Send a message to Firebase Create a reference to Firebase

    in the Activity and insert your own firebase url.
  8. 15.
  9. 16.

    Retrieve a message from Firebase Create a layout for the

    chat. It could look like this, or even better
  10. 22.

    Woohoo!!! You now have a very basic Firebase app that

    sends, receives, displays messages and functions offline.
  11. 23.

    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