一部の Firebase Android SDK はGoogle Play サービスに依存しています。つまり、Google Play サービスがインストールされているデバイスとエミュレータでのみ実行されます。これらの Firebase SDK は、デバイス上の Google Play サービス バックグラウンド サービスと通信して、安全で最新の軽量な API をアプリに提供します。 Amazon Kindle Fire デバイスや一部の地域で販売されているデバイスなどの特定の Android デバイスには、Google Play サービスがインストールされていません。
Google Play サービスが必要な Firebase Android SDK はどれですか?
Firebase SDK は、次の 3 つのカテゴリに分類できます。
- Play サービスが必要— これらの SDK には Google Play サービスが必要です。それ以外の場合は機能しません。
- Play サービス推奨- これらの SDK では、Google Play サービスが完全な機能を備えている必要がありますが、Google Play サービスがなくてもほとんどの機能を提供します。
- Play サービスは不要— これらの SDK では、Google Play サービスが完全に機能する必要はありません。
以下の表は、各 SDK の最新リリースについてのみ正確です。一部の古いバージョンには、より厳しい要件がある場合があります。
Google Play サービスは必要ありません
製品 | 図書館 | グーグルプレイサービス? |
---|---|---|
App Check カスタム プロバイダとデバッグ プロバイダ | com.google.firebase:firebase-appcheck:16.1.1 com.google.firebase:firebase-appcheck-ktx:16.1.1 com.google.firebase:firebase-appcheck-debug:16.1.1 | 不要 |
アプリ配布 API | com.google.firebase:firebase-appdistribution-api:16.0.0-beta05 com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta05 | 不要 |
アプリの配布 | com.google.firebase:firebase-appdistribution:16.0.0-beta05 | 不要 |
認証 | com.google.firebase:firebase-auth:21.1.0 com.google.firebase:firebase-auth-ktx:21.1.0 | 不要 |
クラウド ファイアストア | com.google.firebase:firebase-firestore:24.4.2 com.google.firebase:firebase-firestore-ktx:24.4.2 | 不要 |
Cloud Functions for Firebase クライアント SDK | com.google.firebase:firebase-functions:20.2.2 com.google.firebase:firebase-functions-ktx:20.2.2 | 不要 |
Firebase 用クラウド ストレージ | com.google.firebase:firebase-storage:20.1.0 com.google.firebase:firebase-storage-ktx:20.1.0 | 不要 |
クラッシュリティクス | com.google.firebase:firebase-crashlytics:18.3.3 com.google.firebase:firebase-crashlytics-ktx:18.3.3 | 不要 |
アプリ内メッセージ | com.google.firebase:firebase-inappmessaging:20.3.0 com.google.firebase:firebase-inappmessaging-ktx:20.3.0 | 不要 |
アプリ内メッセージの表示 | com.google.firebase:firebase-inappmessaging-display:20.3.0 com.google.firebase:firebase-inappmessaging-display-ktx:20.3.0 | 不要 |
Firebase のインストール | com.google.firebase:firebase-installations:17.1.0 com.google.firebase:firebase-installations-ktx:17.1.0 | 不要 |
パフォーマンス監視 | com.google.firebase:firebase-perf:20.3.1 com.google.firebase:firebase-perf-ktx:20.3.1 | 不要 |
リアルタイム データベース | com.google.firebase:firebase-データベース:20.1.0 com.google.firebase:firebase-データベース-ktx:20.1.0 | 不要 |
リモート設定 | com.google.firebase:firebase-config:21.2.1 com.google.firebase:firebase-config-ktx:21.2.1 | 不要 |
必須または推奨される Google Play サービス
製品 | 図書館 | グーグルプレイサービス? |
---|---|---|
AdMob | com.google.android.gms:play-services-ads:21.4.0 | おすすめされた* |
分析 | com.google.firebase:firebase-analytics:21.2.0 com.google.firebase:firebase-analytics-ktx:21.2.0 | おすすめされた* |
App Check Play Integrity プロバイダー | com.google.firebase:firebase-appcheck-playintegrity:16.1.1 | 必須 |
App Check SafetyNet プロバイダ | com.google.firebase:firebase-appcheck-safetynet:16.1.1 | 必須 |
アプリのインデックス作成 | com.google.firebase:firebase-appindexing:20.0.0 | 必須 |
クラウド メッセージング | com.google.firebase:firebase-messaging:23.1.1 com.google.firebase:firebase-messaging-ktx:23.1.1 | 必須 |
動的リンク | com.google.firebase:firebase-dynamic-links:21.1.0 com.google.firebase:firebase-dynamic-links-ktx:21.1.0 | 必須 |
Firebase ML ビジョン | com.google.firebase:firebase-ml-vision:24.1.0 | 必須 |
Firebase ML カスタム モデル | com.google.firebase:firebase-ml-モデル-インタープリター:22.0.4 | 必須 |
* Google アナリティクス用の Firebase SDK は、任意のデバイスでイベントを送信できますが、人口統計などの一部の自動インサイトは、Google Play サービスを備えたデバイスでのみ利用できます。