Slide 1

Slide 1 text

What’s New Firebase 2019 Q1 コキチーズ@k2wanko Google I/O 2019 報告会 Slideは DarkTheme Firebase Japan User Group

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

firebase.asia/join

Slide 4

Slide 4 text

firebase.asia/youtube

Slide 5

Slide 5 text

cast.firebase.asia

Slide 6

Slide 6 text

What’s New Firebase

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Webも含まれた (うれしい)

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

ML Kit - 手軽に機械学習を導入できるライブラリ 機能 On-device Cloud Text recognition (OCR) ✔ ✔ Face detection ✔ Barcode scanning ✔ Image labeling ✔ ✔

Slide 12

Slide 12 text

ML Kit 機能 On-device Cloud Object detection & tracking ✔ Landmark recognition ✔ Language identification ✔ Translation ✔ Smart Reply ✔ AutoML model inference ✔ Custom model inference ✔

Slide 13

Slide 13 text

Object Detection & Tracking API

Slide 14

Slide 14 text

Object Detection & Tracking API - 椅子やマグカップなど物体を検出できるAPI - https://firebase.google.com/docs/ml-kit/object-detection

Slide 15

Slide 15 text

Translation API

Slide 16

Slide 16 text

Translation API - 端末内だけで翻訳が可能 - 59カ国語に対応している。

Slide 17

Slide 17 text

AutoML Vision Edge

Slide 18

Slide 18 text

Auto ML Vision Edge - 画像とラベルを投げると最適な手法でTFのモデルを作成して アプリにデプロイできる。 - 無料プランでも利用できる - モデルを利用するときは端末内で完結する。

Slide 19

Slide 19 text

Human labeling - ラベル付けがめんどくさい場合はGCPに人間がラベリングしてくれる サービスもある。 - (誰か試してみたら感想を教えてほしい。) - https://cloud.google.com/vision/automl/docs/human-labeling?hl=en

Slide 20

Slide 20 text

C++ SDK Support

Slide 21

Slide 21 text

C++ SDKがSupportされた。 - https://github.com/firebase/firebase-cpp-sdk - モバイルはもちろん一部デスクトップもSupportされる - 主にゲーム向け - https://firebase.google.com/docs/cpp/setup

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Firebase Crashlytics - アプリのクラッシュ情報やデバッグログの収集するサービス - クラッシュ情報を元に通知などできる。

Slide 24

Slide 24 text

Crashlytics BigQuery Support

Slide 25

Slide 25 text

Configurable velocity alerts in Crashlytics

Slide 26

Slide 26 text

アラートのしきい値を設定できるようになった

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Performance Monitoring - アプリのパフォーマンスを自動収集してくれるサービス - 取得したトレースやメトリックはコンソールから確認できる。

Slide 29

Slide 29 text

Web Support

Slide 30

Slide 30 text

Webをアプリを追加するようになった。 Performance Monitoringで計測するには登録は必要

Slide 31

Slide 31 text

SDKを導入するだけで自動で収集してくれる - Browserや国などはもちろん - Webのためのパフォーマンス指標として - First paint - First contentful paint - domInteractive - domContentLoadedEventEnd - loadEventEnd - first input delay - https://firebase.google.com/docs/perf-mon/automatic-web

Slide 32

Slide 32 text

カスタムトレースやメトリックも可能 - trace.putAttribute("experiment", "A"); - 個人情報を送らないように注意が必要

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

モバイル向けのアナリティクスツール - 無制限に無料で使えるアナリティクス - イベントベースでユーザーのグループ分けや統計情報の取得ができる。 - WebはSupportされていない。(Webは従来のGoogle Analyticsを使う)

Slide 35

Slide 35 text

Audience Builder

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Cloud Firestore - ドキュメント指向のデータベース - クライアントから直接読み書きができる - オフラインでも動作する - 書き込みの制御にセキュリティルールがある

Slide 39

Slide 39 text

Collection Group Query

Slide 40

Slide 40 text

restaurant rest1 rest2 reviews review1 review2

Slide 41

Slide 41 text

restaurant review review review restaurant review review

Slide 42

Slide 42 text

restaurant review review review restaurant review review db.collectionGroup(‘review’);

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

Cloud Functions - Firebaseの様々なイベントをNode.jsで書けるFaaS - クライアントで処理できないものはこれを使うと良い - GCPのFunctionsとはbackendは同じだけどSDK部分だけ違う。 - GCP経由ならGoなど別ランタイムでもいくつかのイベントは受け取れる。

Slide 45

Slide 45 text

Schedule Functions

Slide 46

Slide 46 text

Schedule Functions - cronのようにFunctionsを定期実行するための機能 - Cloud SchedulerとFunctionsの糖衣構文のようなもの

Slide 47

Slide 47 text

Cloud Functions Emulator

Slide 48

Slide 48 text

Cloud Functions Emulator - HTTP Function - Callable Function - Firestore Function - でのテストがローカルで可能 https://firebase.google.com/docs/functions/local-emulator

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

Test Lab - エミュレーターや実機でアプリのテストができるサービス - Android,iOSでの利用が可能。 - apkをアップロードするだけで自動テストもある。

Slide 51

Slide 51 text

NEW Support

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

Firebase Hosting - 静的サイトを配信するためのサービス - HTTP2で配信され、無料で独自ドメインも利用できる。 - CDNが標準でついている。 - ワンクリックで過去のバージョンに戻すことができる。 - 1プロジェクトで複数サイトの運用も可能 - Functionsを組み合わせて動的なコンテンツを配信することも可能

Slide 54

Slide 54 text

*.web.app

Slide 55

Slide 55 text

Firebase Hosting Cloud Run Integration

Slide 56

Slide 56 text

Cloud Run Integration - Cloud RunはDockerイメージを動かせるプラットフォーム - 好きなランタイムでHTTPサーバーを立ち上げられる。 - 1インスタンスで80リクエストまで同時処理できる。 - Functionsの代わりにCloud Runでも動的コンテンツの配信が可能になった。

Slide 57

Slide 57 text

App Distribution

Slide 58

Slide 58 text

App Distribution - Fabric Betaの後継サービス - 開発中のアプリの配信が可能になる。 - private alpha

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

サポートされるプロバイダー - メールパスワード認証 - 電話番号 - Google - Facebook - Twitter - GitHub - 匿名 - (New) Yahoo - (New) Microsoft - (New) Play ゲーム - (New) Game Center

Slide 61

Slide 61 text

Authentication Support Stackdriver Logging

Slide 62

Slide 62 text

今の所有効にするUIはないので APIからONにする curl -d "{'monitoring': {'requestLogging':{'enabled':true}}}" \ -H 'Authorization: Bearer [AUTH_TOKEN]' -X PATCH \ -H 'Content-Type: application/json' \ https://identitytoolkit.googleapis.com/admin/v2/projects/[PROJECT_ID]/config?upd ateMask=monitoring.requestLogging.enabled

Slide 63

Slide 63 text

GCP Consoleからログを確認できる。

Slide 64

Slide 64 text

MFA Support

Slide 65

Slide 65 text

SMS based MFA - SMSを使ってMFA - Private Alpha

Slide 66

Slide 66 text

Authentication + Cloud Functions beforeCreate beforeSignIn (Blocking Function)

Slide 67

Slide 67 text

Blocking Function - ユーザーの作成時や、認証時にFunctionsでロジックを書ける機能 - Private Alpha - g.co/firebasealpha

Slide 68

Slide 68 text

Reference - What's new from Firebase at Google I/O 2019 - What's New in Firebase (Google I/O'19) - Three New Ways to Secure Your App with Firebase Authentication

Slide 69

Slide 69 text

Thanks @k2wanko