Skip to content

Instantly share code, notes, and snippets.

@annibuliful
Created October 8, 2018 05:21
Show Gist options
  • Select an option

  • Save annibuliful/228bb6664f6c9d64830201e96f7a6a41 to your computer and use it in GitHub Desktop.

Select an option

Save annibuliful/228bb6664f6c9d64830201e96f7a6a41 to your computer and use it in GitHub Desktop.

#What's new Firebase 1.3M monthly active app

##Build Better app

  1. Firebase Admin

    • Node , Go , Python , Java , .NET
  2. Cloud firestore

  • Sorting & More condition to Filtering
  • Limitation Concurrent 1 M connection
  • Multi tab offline support for Web (Enable Persistence )
  • Auto complete in Security rules
  1. Authentication
  • PasswordLess Sign in (Verify key is sent to email)
  1. Cloud function
  • Multi region
  • stable 2.0
  • Node 8 Runtime
  • Timeout memory
  • Callable function => trigger to URL by using this function
  • Typescript
  • Unit Testing
  • New monitoring tools in Cloud functions
  1. FCM(Firebase Cloud Messaging ) reporting Dashboard
  • Migrate Cloud Cloud Messaging to Firebase Cloud Messaging
  1. ML kit fore Firebase
  • Text recognition , Image labelling , Barcode scanning , Face detection , Landmark recognition
  • Coming soon: Face contour Smart reply's API
  1. Firebase Hosting
  • Firebase CLI => 4.2
  • Deploy only files different from previous deployment
  • Boot in upload speed
  • Support Multiple Sites

Improve app Quality

  1. Firebase Crashlytics
  • 3+ Billion Devices WorldWide
  • Compose Google Analytic and Firebase Crashlytics
  • Tracing ( Page by Page , Who get crash)
  • Integrate with Jira software ( Automatically create the issue, Manually create the issue, Filtering the issue by Device and OS )
  • Exporting data to BigQuery
  1. Firebase Test Lab
  • Support IOS
  • Plugin Fastlane (Automatically Testing then Deploy IOS app)
  1. Firebase performance monitoring
  • Importance issues (Report critical issue , check the code which use more memory , Network latency )
  • Deep dive data(Region , Networking)

  1. Firebase remote config
  • Change History (Check who change the values in Service, AB testing)
  1. Google Analytic for Firebase
  • Project Level Reporting (Filtering OS , User Property)
  1. Firebase In-App Messaging
  • Run when app is active only
  • Custom Message (Image, Icon , Web URL, background color, Button)
  • No need coding
  • Can Integrate with Firebase prediction( predicting user behavior in 100 days)
  • steps:
    1. style and content
    2. target
    3. scheduling
    4. Conversation event(Trigger Google analytic for firebase)
  • Can Custom modal
  • Impression , Click and Conversation

Open source Firebase android SDK

ML kit for IOS developers

Easier using

  1. Google lens - Recognization Image what is it - Text recognization - Smart reply such as Gmail

  2. On device Machine Learning - Save internet cost. - use offline

  3. Application & SDK - Tensorflow Lite - Neural network API on device ( C , C++)

  4. Image Classification - steps:

    1. Get image
    2. transform
    3. interpret
    4. get result It's hard to use. On Fire!!!
  5. Intro ML kit - FIRVisionImage | VisionImage

  6. Text recognization - on Device which Support only Latin letter - on Cloud support al of most language

  7. Image labelling - on device support 400+ labels - on cloud support 10,000+ labels

  8. Face detection - Only on-device

  9. Landmark recognization - Only on-cloud

10 Barcode scanning - on-device

  1. Tensorflow lite - Custom model

Adding to your Flutter app

  1. What's Flutter - it is created by Dart lang - is a mobile app SDK building high-performance

  2. What's Dart - Dart is AOT compile to fast. predictable , native code - Dart can be also JIT

  3. widget - Stateless can use them immediatly - Stateful Lifecycle

  4. Flutter + Firebase = <3 - Flutter fire is a among of plugin for firebase - There is a documentation on Firebase web

Bringing Admin SDK

  • Server owned or managed by app developers
  • Cloud IaaS and PaaS environment
  • Serverless platforms

Migrate Realtime Database to Firestore

History - Firebase is a startup company - Firestore = Firebase Database + Cloud Datastore

Difference - Data Model - Querying - Write and transactions - Realtime and offline support - Reliability and performance - Scalability - Security - Pricing - Latency

How to migrate ? - Data Structure - RTDB -> Cloud firestore => use Key to relate between the data - use sub collection instead

- Security Rule
  - use in sub collection

- Move Historical Data
  - Export JSON
  - Recent Backup
  - Write a custom script
  - Use Admin SDK ( 500 writes / sec)
  - Batched writes
  - Add new data (Cloud function trigger)
  - Remove read & write command from Realtime Database
  - Re-check data structure & Security Rule

Build Natural Conversational ChatBot

use with Dialogflow

Getting Started with Cloud function for firebase using Kotlin JS

  • What is Firebase Cloud function

    • Serverless architecture
      • save Cost
      • save maintainance
    • Provide to API -integrate with each other product
  • Bad thing about Kotlin to JS

    • Dynamic Type
    • Kotlin Object != JS Object
    • Parsing data with extra field
      • Can Create model before use
    • Can not call some methods
      • val is reserve word in Kotlin => js("snapshot.val()")
    • Need to know JS
    • Can not use some kotlin syntax and expect same flow
    • Unreadable error and hard to debug
  • Can we improve

    • use Kotlin interface
    • use functions by interface
  • features

    • Firestore
    • Database
    • Function
    • Admin
    • ExpressJS
    • Realtime Database triggers
    • GEO point for firestore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment