Google Play 開発者サービスに対する Firebase Android SDK の依存関係

一部の Firebase Android SDK は Google Play 開発者サービスに依存しているため、Google Play 開発者サービスがインストールされているデバイスとエミュレータでのみ動作します。これらの Firebase SDK は、デバイス上の Google Play 開発者サービスのバックグラウンド サービスと通信して、最新のセキュアな軽量 API をアプリに提供します。一部の Android デバイス(Amazon Kindle Fire デバイスや一部の地域で販売されているデバイスなど)には、Google Play 開発者サービスがインストールされていません。

Google Play 開発者サービスが必要な Firebase Android SDK

Firebase SDK は次の 3 つのカテゴリに分類できます。

  • Play 開発者サービスが必須 - Google Play 開発者サービスがなければ機能しません。
  • Play 開発者サービスが推奨 - すべての機能を利用するには Google Play 開発者サービスが必要ですが、ほとんどの機能は Google Play 開発者サービスなしで利用できます。
  • Play 開発者サービスが不要 - Google Play 開発者サービスなしですべての機能を利用できます。

以下の表は、各 SDK の最新リリースのみに当てはまります。古いバージョンには、より厳しい要件がある場合があります。

Google Play 開発者サービスは不要

プロダクト ライブラリ Google Play 開発者サービス
App Check のカスタム プロバイダとデバッグ プロバイダ com.google.firebase:firebase-appcheck:17.0.1
com.google.firebase:firebase-appcheck-ktx:17.0.1
com.google.firebase:firebase-appcheck-debug:17.0.1
不要
App Distribution API com.google.firebase:firebase-appdistribution-api:16.0.0-beta10
com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta10
不要
App Distribution com.google.firebase:firebase-appdistribution:16.0.0-beta10 不要
Authentication com.google.firebase:firebase-auth:22.1.2
com.google.firebase:firebase-auth-ktx:22.1.2
不要
Cloud Firestore com.google.firebase:firebase-firestore:24.8.1
com.google.firebase:firebase-firestore-ktx:24.8.1
不要
Cloud Functions for Firebase Client SDK com.google.firebase:firebase-functions:20.3.1
com.google.firebase:firebase-functions-ktx:20.3.1
不要
Cloud Storage for Firebase com.google.firebase:firebase-storage:20.2.1
com.google.firebase:firebase-storage-ktx:20.2.1
不要
Crashlytics com.google.firebase:firebase-crashlytics:18.4.3
com.google.firebase:firebase-crashlytics-ktx:18.4.3
不要
In-App Messaging com.google.firebase:firebase-inappmessaging:20.3.5
com.google.firebase:firebase-inappmessaging-ktx:20.3.5
不要
In-App Messaging Display com.google.firebase:firebase-inappmessaging-display:20.3.5
com.google.firebase:firebase-inappmessaging-display-ktx:20.3.5
不要
Firebase インストール com.google.firebase:firebase-installations:17.1.4
com.google.firebase:firebase-installations-ktx:17.1.4
不要
Performance Monitoring com.google.firebase:firebase-perf:20.4.1
com.google.firebase:firebase-perf-ktx:20.4.1
不要
Realtime Database com.google.firebase:firebase-database:20.2.2
com.google.firebase:firebase-database-ktx:20.2.2
不要
Remote Config com.google.firebase:firebase-config:21.4.1
com.google.firebase:firebase-config-ktx:21.4.1
不要
プロダクト ライブラリ Google Play 開発者サービス
AdMob com.google.android.gms:play-services-ads:22.4.0 推奨*
アナリティクス com.google.firebase:firebase-analytics:21.3.0
com.google.firebase:firebase-analytics-ktx:21.3.0
推奨*
App Check Play Integrity プロバイダ com.google.firebase:firebase-appcheck-playintegrity:17.0.1 必須
App Check SafetyNet プロバイダ com.google.firebase:firebase-appcheck-safetynet:16.1.2 必須
App Indexing com.google.firebase:firebase-appindexing:20.0.0 必須
Cloud Messaging com.google.firebase:firebase-messaging:23.2.1
com.google.firebase:firebase-messaging-ktx:23.2.1
必須
Dynamic Links com.google.firebase:firebase-dynamic-links:21.1.0
com.google.firebase:firebase-dynamic-links-ktx:21.1.0
必須
Firebase ML Vision com.google.firebase:firebase-ml-vision:24.1.0 必須
Firebase ML Custom Model com.google.firebase:firebase-ml-model-interpreter:22.0.4 必須

*Google アナリティクス向け Firebase SDK はどのデバイスでもイベントを送信できますが、一部の自動インサイト(ユーザー属性など)は Google Play 開発者サービスがインストールされたデバイスでのみ利用できます。