Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
What's New Firebase 2019 Q1 #FJUG #io19jp
Search
k2wanko
May 19, 2019
Technology
5
2.7k
What's New Firebase 2019 Q1 #FJUG #io19jp
Google I/O 2019で話されたFirebaseの話を軽くまとめたものです。
https://gdg-tokyo.connpass.com/event/128867/
k2wanko
May 19, 2019
Tweet
Share
More Decks by k2wanko
See All by k2wanko
Sales AI Cloud "ailead" TSConfig Strictly Adopted / セールスAIクラウド「ailead」の TSConfig厳格化対応した話 /
k2wanko
4
2k
Google Analytics for Firebaseを 使うときに把握しておきたいこと / Keep in mind when using Google Analytics for Firebase
k2wanko
2
510
パスワードのない未来のための Firebaseで実装するFIDO2 / FIDO2 actualized by Firebase for the password-less future
k2wanko
5
2.5k
Firebase Auth& Performance Monitoring
k2wanko
0
360
Firebase for Grow
k2wanko
5
1k
gosecを試してみた話 / try gosec
k2wanko
0
3.5k
最近のFirebase / Recent Firebase
k2wanko
4
1.7k
Firebase Japan User Group Introduction 2018 #FJUG
k2wanko
0
620
Firestore with Security - Firebase Summit 2018 Report Day
k2wanko
5
2k
Other Decks in Technology
See All in Technology
フロントエンド刷新 4年間の軌跡
yotahada3
0
500
中央集権型を脱却した話 分散型をやめて、連邦型にたどり着くまで
sansantech
PRO
1
100
AI時代の「本当の」ハイブリッドクラウド — エージェントが実現した、あの頃の夢
ebibibi
0
150
進化するBits AI SREと私と組織
nulabinc
PRO
1
250
AWSの資格って役に立つの?
tk3fftk
2
370
Google系サービスで文字起こしから勝手にカレンダーを埋めるエージェントを作った話
risatube
0
190
システム標準化PMOから ガバメントクラウドCoEへ
techniczna
1
140
Sansanでの認証基盤内製化と移行
sansantech
PRO
0
590
Claude Code Skills 勉強会 (DevelersIO向けに調整済み) / claude code skills for devio
masahirokawahara
1
22k
最強のAIエージェントを諦めたら品質が上がった話 / how quality improved after giving up on the strongest AI agent
kt2mikan
0
200
今のWordPress の制作手法ってなにがあんねん?(改) / What’s the Deal with WordPress Development These Days?
tbshiki
0
510
品質を経営にどう語るか #jassttokyo / Communicating the Strategic Value of Quality to Executive Leadership
kyonmm
PRO
2
640
Featured
See All Featured
Scaling GitHub
holman
464
140k
Designing for humans not robots
tammielis
254
26k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
150
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
200
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.9k
Paper Plane
katiecoart
PRO
0
48k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
210
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.5k
Embracing the Ebb and Flow
colly
88
5k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.1k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
260
Transcript
What’s New Firebase 2019 Q1 コキチーズ@k2wanko Google I/O 2019 報告会
Slideは DarkTheme Firebase Japan User Group
None
firebase.asia/join
firebase.asia/youtube
cast.firebase.asia
What’s New Firebase
None
None
Webも含まれた (うれしい)
None
ML Kit - 手軽に機械学習を導入できるライブラリ 機能 On-device Cloud Text recognition (OCR)
✔ ✔ Face detection ✔ Barcode scanning ✔ Image labeling ✔ ✔
ML Kit 機能 On-device Cloud Object detection & tracking ✔
Landmark recognition ✔ Language identification ✔ Translation ✔ Smart Reply ✔ AutoML model inference ✔ Custom model inference ✔
Object Detection & Tracking API
Object Detection & Tracking API - 椅子やマグカップなど物体を検出できるAPI - https://firebase.google.com/docs/ml-kit/object-detection
Translation API
Translation API - 端末内だけで翻訳が可能 - 59カ国語に対応している。
AutoML Vision Edge
Auto ML Vision Edge - 画像とラベルを投げると最適な手法でTFのモデルを作成して アプリにデプロイできる。 - 無料プランでも利用できる -
モデルを利用するときは端末内で完結する。
Human labeling - ラベル付けがめんどくさい場合はGCPに人間がラベリングしてくれる サービスもある。 - (誰か試してみたら感想を教えてほしい。) - https://cloud.google.com/vision/automl/docs/human-labeling?hl=en
C++ SDK Support
C++ SDKがSupportされた。 - https://github.com/firebase/firebase-cpp-sdk - モバイルはもちろん一部デスクトップもSupportされる - 主にゲーム向け - https://firebase.google.com/docs/cpp/setup
None
Firebase Crashlytics - アプリのクラッシュ情報やデバッグログの収集するサービス - クラッシュ情報を元に通知などできる。
Crashlytics BigQuery Support
Configurable velocity alerts in Crashlytics
アラートのしきい値を設定できるようになった
None
Performance Monitoring - アプリのパフォーマンスを自動収集してくれるサービス - 取得したトレースやメトリックはコンソールから確認できる。
Web Support
Webをアプリを追加するようになった。 Performance Monitoringで計測するには登録は必要
SDKを導入するだけで自動で収集してくれる - Browserや国などはもちろん - Webのためのパフォーマンス指標として - First paint - First
contentful paint - domInteractive - domContentLoadedEventEnd - loadEventEnd - first input delay - https://firebase.google.com/docs/perf-mon/automatic-web
カスタムトレースやメトリックも可能 - trace.putAttribute("experiment", "A"); - 個人情報を送らないように注意が必要
None
モバイル向けのアナリティクスツール - 無制限に無料で使えるアナリティクス - イベントベースでユーザーのグループ分けや統計情報の取得ができる。 - WebはSupportされていない。(Webは従来のGoogle Analyticsを使う)
Audience Builder
None
None
Cloud Firestore - ドキュメント指向のデータベース - クライアントから直接読み書きができる - オフラインでも動作する - 書き込みの制御にセキュリティルールがある
Collection Group Query
restaurant rest1 rest2 reviews review1 review2
restaurant review review review restaurant review review
restaurant review review review restaurant review review db.collectionGroup(‘review’);
None
Cloud Functions - Firebaseの様々なイベントをNode.jsで書けるFaaS - クライアントで処理できないものはこれを使うと良い - GCPのFunctionsとはbackendは同じだけどSDK部分だけ違う。 - GCP経由ならGoなど別ランタイムでもいくつかのイベントは受け取れる。
Schedule Functions
Schedule Functions - cronのようにFunctionsを定期実行するための機能 - Cloud SchedulerとFunctionsの糖衣構文のようなもの
Cloud Functions Emulator
Cloud Functions Emulator - HTTP Function - Callable Function -
Firestore Function - でのテストがローカルで可能 https://firebase.google.com/docs/functions/local-emulator
None
Test Lab - エミュレーターや実機でアプリのテストができるサービス - Android,iOSでの利用が可能。 - apkをアップロードするだけで自動テストもある。
NEW Support
None
Firebase Hosting - 静的サイトを配信するためのサービス - HTTP2で配信され、無料で独自ドメインも利用できる。 - CDNが標準でついている。 - ワンクリックで過去のバージョンに戻すことができる。
- 1プロジェクトで複数サイトの運用も可能 - Functionsを組み合わせて動的なコンテンツを配信することも可能
*.web.app
Firebase Hosting Cloud Run Integration
Cloud Run Integration - Cloud RunはDockerイメージを動かせるプラットフォーム - 好きなランタイムでHTTPサーバーを立ち上げられる。 - 1インスタンスで80リクエストまで同時処理できる。
- Functionsの代わりにCloud Runでも動的コンテンツの配信が可能になった。
App Distribution
App Distribution - Fabric Betaの後継サービス - 開発中のアプリの配信が可能になる。 - private alpha
None
サポートされるプロバイダー - メールパスワード認証 - 電話番号 - Google - Facebook -
Twitter - GitHub - 匿名 - (New) Yahoo - (New) Microsoft - (New) Play ゲーム - (New) Game Center
Authentication Support Stackdriver Logging
今の所有効にする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
GCP Consoleからログを確認できる。
MFA Support
SMS based MFA - SMSを使ってMFA - Private Alpha
Authentication + Cloud Functions beforeCreate beforeSignIn (Blocking Function)
Blocking Function - ユーザーの作成時や、認証時にFunctionsでロジックを書ける機能 - Private Alpha - g.co/firebasealpha
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
Thanks @k2wanko