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

What's New with Firebase

Ash Davies
November 12, 2016

What's New with Firebase

After this years Google I/O, Firebase was upgraded and become an even more important role in the range of Google services available. Now properly integrated with Google Services, Firebase offers developers much more than than just a database for "personal" projects.

The new updated Firebase however has left many developers a bit puzzled on how to properly include Firebase in their projects, how it integrates into Google Services, and how they can make use of the new features available.

If you’ve used Firebase already, you might be aware of how to integrate and make use of it in your applications but if not prior knowledge isn’t necessary. In this talk I’d like to share with you how migrate your existing code to the updated versions, what new features you’ll be able to take advantage of, and any pitfalls that you can hopefully avoid!

https://2016.devfest-berlin.de/schedule/#session-2206

Ash Davies

November 12, 2016
Tweet

More Decks by Ash Davies

Other Decks in Programming

Transcript

  1. Authentication → Authentication & account management → Email & password

    authentication → Google, Facebook, Twitter, GitHub → Custom OAuth2 redirect domains
  2. Data Synchronisation → Graceful Connectivity Loss → Application Data Cache

    → Client Synchronisation → Conflict Resolution
  3. No!

  4. { "users": { "alovelace": { "name": "Ada Lovelace", "contacts": {

    "ghopper": true }, }, "ghopper": { ... }, "eclarke": { ... } } }
  5. Set Up // Legacy SDK compile "com.firebase:firebase-client-android:2.5.2" // Distributed SDK

    compile "com.google.firebase:firebase-core:9.8.0" compile "com.google.firebase:firebase-auth:9.8.0" compile "com.google.firebase:firebase-database:9.8.0" compile "com.google.firebase:firebase-crash:9.8.0" compile "com.google.firebase:firebase-config:9.8.0"
  6. The Tasks API1 Task<AuthResult> task = FirebaseAuth.getInstance().signInAnonymously(); task.addOnSuccessListener(new OnSuccessListener<AuthResult>() {

    @Override public void onSuccess(AuthResult result) { /* ... */ } }); task.addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception exception) { /* ... */ } }); 1 https://developers.google.com/android/guides/tasks
  7. Hosting → Serve static assets → SSL by default →

    Custom domains → Available free
  8. Admin SDK → Integrate with CI systems → Import users

    into Firebase Auth → Manage Users, Database
  9. But wait, there's more! → App Invites → App Indexing

    → Dynamic Links → Test Lab → AdWords
  10. Twitterers → Doug Stevenson - CodingDoug → Laurence Moroney -

    lmoroney Shameless... → Ash Davies - DogmaticCoder