What is new in Firebase?


Published on

Firebase with a new face...

Published in: Software
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

What is new in Firebase?

  2. 2. • Firebase is Joining Google • Used by 110.000 Developers 2014 • Before Google I/O – BetaVersion • Used by 440.000+ Developers AFTER GOOGLE I/O
  3. 3. for iOS for Android forWeb
  4. 4. 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
  6. 6. How is Data Stored inThis Database? TREE OF LISTS&OBJECT NoSQL JSON Database
  7. 7. compile 'com.google.firebase:firebase-database:9.0.1' DatabaseReference mRoot = FirebaseDatabase.getInstance().getReference(); DatabaseReference dataRef = mRoot.child("GDGs"); dataRef.setValue("GdgIstanbul");
  8. 8. Realtime Database handles offline in two ways; 1.Intermittent: for a short period of time. 2.LongTerm: for long time. FirebaseDatabase.getInstanse().setPersistenceEnabled(true);
  9. 9. 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.
  10. 10. 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.
  11. 11. compile 'com.google.firebase:firebase-storage:9.0.1' FirebaseStorage storage = FirebaseStorage.getInstance(); // Create a storage reference from our app StorageReference storageRef = storage.getReferenceFromUrl("gs://<your-bucket-name>");
  12. 12. // Create a child reference // imagesRef now points to "images" StorageReference imagesRef = storageRef.child("images"); StorageReference spaceRef = storageRef.child("images/space.jpg");
  13. 13. • 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.
  14. 14. compile 'com.google.firebase:firebase-auth:9.0.0' private FirebaseAuth mAuth; // ... mAuth = FirebaseAuth.getInstance();
  15. 15. Firebase Notifications is a free service that enables targeted user notifications for mobile app developers. compile 'com.google.firebase:firebase-messaging:9.0.2'
  16. 16. Firebase Analytics is a free app measurement solution that provides insight on app usage and user engagement.
  17. 17. • 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.
  18. 18. 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);
  19. 19. Change the behavior and appearance of your app without publishing an app update.
  20. 20. fetc h Remote Config Server Your App
  21. 21. compile 'com.google.firebase:firebase-config:9.0.1' mFirebaseRemoteConfig = FirebaseRemoteConfig.getInstance();
  22. 22. Test your app on devices hosted in a Google datacenter. Firebase Test Lab for Android provides cloud-based infrastructure for testing Android apps.
  23. 23. Instrumentation Tests & Robo Test Espresso Robotium UI Automator 2.0 By simulating user actions
  24. 24. Comprehensive and actionable information to help diagnose and fix problems in your app. compile 'com.google.firebase:firebase-crash:9.0.1'
  25. 25. 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'
  26. 26. 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'
  27. 27. AdMob by Google is an easy way to monetize mobile apps with targeted, in-app advertising.
  28. 28. THANK YOU! snnylmz09@gmail.com twitter.com/sinannnyilmaz