what is new in firebase?

32
FIREBASE WITH A NEW FACE SİNAN YILMAZ

Upload: sinan-yilmaz

Post on 09-Apr-2017

172 views

Category:

Software


1 download

TRANSCRIPT

Page 1: What is new in Firebase?

FIREBASE WITH A NEW FACESİNAN YILMAZ

Page 2: What is new in Firebase?
Page 3: What is new in Firebase?

• Firebase is Joining Google

• Used by 110.000 Developers

2014

• Before Google I/O – Beta Version

• Used by 440.000+ Developers

AFTER GOOGLE

I/O

Page 4: What is new in Firebase?
Page 5: What is new in Firebase?

FIREBASE BY PLATFORM

for iOSfor Android for Web

Page 6: What is new in Firebase?

Add Firebase to your app

buildscript { //…. } dependencies { //…. classpath 'com.google.gms:google-services:3.0.0'

}}// build.gradle

apply plugin: 'com.android.application'

android { //…..}}

dependencies { //….}

apply plugin: 'com.google.gms.google-services‘// app/build.gradle

Page 7: What is new in Firebase?

REALTIME &

OFFLINE

Page 8: What is new in Firebase?

How is Data Stored in This Database?

TREE OF LISTS&OBJECTNoSQL JSON Database

Page 9: What is new in Firebase?

compile 'com.google.firebase:firebase-database:9.0.1'

DatabaseReference mRoot = FirebaseDatabase.getInstance().getReference();

DatabaseReference dataRef = mRoot.child("GDGs");

dataRef.setValue("GdgIstanbul");

Page 10: What is new in Firebase?

Realtime Database handles offline in two ways;

1.Intermittent: for a short period of time.

2.Long Term: for long time.

FirebaseDatabase.getInstanse().setPersistenceEnabled(true);

Page 11: What is new in Firebase?

SECURITY

Firebase Realtime Database Rules determine who has read and write access to your database, how your data is structured, and what indexes exist. These rules live on the Firebase servers and are enforced automatically at all times. Every read and write request will only be completed if your rules allow it. By default, your rules are set to allow only authenticated users full read and write access to your database. This is to protect your database from abuse until you have time to customize your rules or set up authentication.

Page 12: What is new in Firebase?

Firebase Storage is built for app developers who need to store and serve user-generated content, such as photos or videos.

Firebase Storage is backed by Google Cloud Storage , a powerful, simple, and cost-effective object storage service.

Page 13: What is new in Firebase?

compile 'com.google.firebase:firebase-storage:9.0.1'

FirebaseStorage storage = FirebaseStorage.getInstance();

// Create a storage reference from our appStorageReference storageRef = storage.getReferenceFromUrl("gs://<your-bucket-name>");

Page 14: What is new in Firebase?

// Create a child reference// imagesRef now points to "images"StorageReference imagesRef = storageRef.child("images");

StorageReference spaceRef = storageRef.child("images/space.jpg");

Page 15: What is new in Firebase?
Page 16: What is new in Firebase?

• Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, popular federated identity providers like Google, Facebook and Twitter, and more.

• Firebase Authentication integrates tightly with other Firebase services, and it leverages industry standards like OAuth 2.0 and OpenID Connect, so it can be easily integrated with your custom backend.

Page 17: What is new in Firebase?

compile 'com.google.firebase:firebase-auth:9.0.0'

  private FirebaseAuth mAuth; // ...        mAuth = FirebaseAuth.getInstance();

Page 18: What is new in Firebase?

Firebase Notifications is a free service that enables targeted user notifications for mobile app developers.

compile 'com.google.firebase:firebase-messaging:9.0.2'

Page 19: What is new in Firebase?

Firebase Analytics is a free app measurement solution that provides insight on app usage and user engagement.

Page 20: What is new in Firebase?

• Firebase Analytics helps you understand how your users behave, so you can make informed decisions about how to market your app. See the performance of your campaigns across organic and paid channels to understand which methods are most effective at driving high-value users. 

Page 21: What is new in Firebase?

compile 'com.google.firebase:firebase-analytics:9.0.0'

//In the onCreate method of your app’s sign-in activity,initialize the FirebaseAnalytics object: // Obtain the FirebaseAnalytics instance.

mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);

Page 22: What is new in Firebase?

Change the behavior and appearance of your app without publishing an app update.

Page 23: What is new in Firebase?

fetch

Remote Config Server

Your App

Page 24: What is new in Firebase?

compile 'com.google.firebase:firebase-config:9.0.1'

mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance();

Page 25: What is new in Firebase?

Test your app on devices hosted in a Google datacenter.

Firebase Test Lab for Android provides cloud-based infrastructure for testing Android apps.

Page 26: What is new in Firebase?

Instrumentation Tests & Robo TestEspressoRobotium

UI Automator 2.0By simulating user actions

Page 27: What is new in Firebase?

Comprehensive and actionable information to help diagnose and fix problems in your app.

compile 'com.google.firebase:firebase-crash:9.0.1'

Page 28: What is new in Firebase?

Firebase Dynamic Links are smart URLs that dynamically change behavior to provide the best experience across different platforms.

compile 'com.google.firebase:firebase-invites:9.0.2'

Page 29: What is new in Firebase?

Firebase Invites is a cross-platform solution for sending personalized email and SMS invitations, on-boarding users, and measuring the impact of invitations.

Firebase Invites builds on Firebase Dynamic Links .

compile 'com.google.firebase:firebase-invites:9.0.2'

Page 30: What is new in Firebase?

AdMob by Google is an easy way to monetize mobile apps with targeted, in-app advertising.

Page 31: What is new in Firebase?
Page 32: What is new in Firebase?

THANK YOU!

[email protected]

twitter.com/sinannnyilmaz