一部のFirebaseAndroidSDKは、 Google Playサービスに依存しています。つまり、GooglePlayサービスがインストールされているデバイスとエミュレーターでのみ実行されます。これらのFirebaseSDKは、デバイス上のGoogle Playサービスバックグラウンドサービスと通信して、アプリに安全で最新かつ軽量のAPIを提供します。 Amazon Kindle Fireデバイスや一部の地域で販売されているデバイスなどの特定のAndroidデバイスには、GooglePlayサービスがインストールされていません。
どのFirebaseAndroidSDKにGooglePlayサービスが必要ですか?
Firebase SDKは、次の3つのカテゴリに分類できます。
- 必要なPlayサービス—これらのSDKにはGoogle Playサービスが必要です。それ以外の場合、機能はありません。
- 推奨されるPlayサービス—これらのSDKは、Google Playサービスが完全な機能を備えている必要がありますが、GooglePlayサービスがなくてもほとんどの機能を提供します。
- Playサービスは不要—これらのSDKは、GooglePlayサービスが完全な機能を備えている必要はありません。
以下の表は、各SDKの最新リリースについてのみ正確です。一部の古いバージョンには、より厳しい要件がある場合があります。
GooglePlayサービスは必要ありません
製品 | としょうかん | Google Playサービス? |
---|---|---|
AppCheckカスタムプロバイダーとデバッグプロバイダー | com.google.firebase:firebase-appcheck:16.0.0 com.google.firebase:firebase-appcheck-debug:16.0.0 | 不要 |
アプリ配布API | com.google.firebase:firebase-appdistribution-api:16.0.0-beta03 com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta03 | 不要 |
アプリの配布 | com.google.firebase:firebase-appdistribution:16.0.0-beta03 | 不要 |
認証 | com.google.firebase:firebase-auth:21.0.6 com.google.firebase:firebase-auth-ktx:21.0.6 | 不要 |
CloudFirestore | com.google.firebase:firebase-firestore:24.2.0 com.google.firebase:firebase-firestore-ktx:24.2.0 | 不要 |
FirebaseClientSDKのクラウド機能 | com.google.firebase:firebase-functions:20.1.0 com.google.firebase:firebase-functions-ktx:20.1.0 | 不要 |
Firebase用のクラウドストレージ | com.google.firebase:firebase-storage:20.0.1 com.google.firebase:firebase-storage-ktx:20.0.1 | 不要 |
Crashlytics | com.google.firebase:firebase-crashlytics:18.2.11 com.google.firebase:firebase-crashlytics-ktx:18.2.11 | 不要 |
アプリ内メッセージング | com.google.firebase:firebase-inappmessaging:20.1.2 com.google.firebase:firebase-inappmessaging-ktx:20.1.2 | 不要 |
アプリ内メッセージングディスプレイ | com.google.firebase:firebase-inappmessaging-display:20.1.2 com.google.firebase:firebase-inappmessaging-display-ktx:20.1.2 | 不要 |
Firebaseのインストール | com.google.firebase:firebase-installations:17.0.1 com.google.firebase:firebase-installations-ktx:17.0.1 | 不要 |
パフォーマンス監視 | com.google.firebase:firebase-perf:20.1.0 com.google.firebase:firebase-perf-ktx:20.1.0 | 不要 |
リアルタイムデータベース | com.google.firebase:firebase-database:20.0.5 com.google.firebase:firebase-database-ktx:20.0.5 | 不要 |
リモート構成 | com.google.firebase:firebase-config:21.1.0 com.google.firebase:firebase-config-ktx:21.1.0 | 不要 |
必須または推奨されるGooglePlayサービス
製品 | としょうかん | Google Playサービス? |
---|---|---|
AdMob | com.google.android.gms:play-services-ads:21.0.0 | おすすめされた* |
分析 | com.google.firebase:firebase-analytics:21.0.0 com.google.firebase:firebase-analytics-ktx:21.0.0 | おすすめされた* |
AppCheckPlay整合性プロバイダー | com.google.firebase:firebase-appcheck-playintegrity:16.0.0 | 必須 |
アプリチェックSafetyNetプロバイダー | com.google.firebase:firebase-appcheck-safetynet:16.0.0 | 必須 |
アプリのインデックス作成 | com.google.firebase:firebase-appindexing:20.0.0 | 必須 |
クラウドメッセージング | com.google.firebase:firebase-messaging:23.0.6 com.google.firebase:firebase-messaging-ktx:23.0.6 | 必須 |
動的リンク | com.google.firebase:firebase-dynamic-links:21.0.1 com.google.firebase:firebase-dynamic-links-ktx:21.0.1 | 必須 |
FirebaseMLビジョン | com.google.firebase:firebase-ml-vision:24.1.0 | 必須 |
FirebaseMLカスタムモデル | com.google.firebase:firebase-ml-model-interpreter:22.0.4 | 必須 |
* Firebase SDK for Google Analyticsはどのデバイスでもイベントを送信できますが、人口統計などの一部の自動インサイトは、GooglePlayサービスを備えたデバイスでのみ利用できます。