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

Simplyfyimg Firebase For Android Apps - I/O Tra...

Simplyfyimg Firebase For Android Apps - I/O Tracker App

Google I/O 2017 Tracker App Codelab presentation

More Decks by Olayinka Peter Oluwafemi

Other Decks in Programming

Transcript

  1. Google Transport Tracker Components • Data Store: A Firebase Realtime

    Database that stores the vehicle location data sent from the vehicle locator, and provides realtime data synchronization to the map and administrator's overview. • Vehicle Locator: An Android app that uses the fused location provider, in the Google Play services location APIs, to report its location to the Firebase Realtime Database. • Backend: The server-side component that manages the state of the Firebase Realtime Database. • Map: A web interface that displays schedule information and vehicle locations. • Administrator’s Overview: A web interface that gives administrators an overview of the tracked vehicles.
  2. Step Four: Set up the backend Get your Firebase web

    app credentials: • Click Add Firebase to your web app. • Go to the Service Accounts tab in your Firebase project's settings. • Click Generate New Private Key and confirm the action as prompted. • Firebase downloads an adminsdk JSON file containing your service account credentials. Store this file for later use. Copy the folder /backend/ and paste in your new project
  3. Step Four: Set up the backend • Go to the

    Service Accounts tab in your Firebase project's settings.
  4. Step Four: Set up the backend • Click Generate New

    Private Key and confirm the action as prompted.
  5. Step Six: Set up the vehicle locator Android app •

    Go to your cloned repo and open the android directory in Android Studio. • On Firebase console, click Add Firebase to your Android app, and follow the prompts. • Download and save the google-services.json file as directed. • Paste the file inside app level in your project
  6. Step Six: Set up the vehicle locator Android app •

    Enable email and password as an authentication method • Add a user
  7. Step Six: Set up the vehicle locator Android app •

    Running the app Issues • Google Play Services and Google Repo • Package name (app id) • GPS just didn’t co-operate
  8. Or you can do half screen if you have text

    What are you going to build with Firebase?