Einige Firebase Android SDKs sind von Google Play services abhängig. Das bedeutet, dass sie nur auf Geräten und Emulatoren ausgeführt werden können, auf denen Google Play services installiert ist. Diese Firebase SDKs kommunizieren mit dem Google Play services-Hintergrunddienst auf dem Gerät, um Ihrer App eine sichere, aktuelle und schlanke API zur Verfügung zu stellen. Auf bestimmten Android-Geräten, z. B. auf Amazon Kindle Fire-Geräten oder solchen, die in einigen Regionen verkauft werden, ist Google Play services nicht installiert.
Für welche Firebase Android SDKs ist Google Play services erforderlich?
Firebase SDKs lassen sich in drei Kategorien unterteilen:
- Play services erforderlich: Für diese SDKs ist Google Play services erforderlich. Andernfalls funktionieren sie nicht.
- Play services empfohlen: Für diese SDKs ist Google Play services erforderlich, um die vollständigen Funktionen nutzen zu können. Sie bieten aber auch ohne Google Play services die meisten Funktionen.
- Play services nicht erforderlich: Für diese SDKs ist Google Play services nicht erforderlich, um die volle Funktionalität zu nutzen.
Die folgenden Tabellen sind nur für die aktuelle Version der einzelnen SDKs korrekt. Für einige ältere Versionen gelten möglicherweise strengere Anforderungen.
Google Play services nicht erforderlich
Produkt | Bibliothek | Google Play services? |
---|---|---|
App Check Benutzerdefinierte und Debug-Anbieter | com.google.firebase:firebase-appcheck:18.0.0 com.google.firebase:firebase-appcheck-ktx:18.0.0 com.google.firebase:firebase-appcheck-debug:18.0.0 |
Nicht erforderlich |
App Distribution API | com.google.firebase:firebase-appdistribution-api:16.0.0-beta14 com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta14 |
Nicht erforderlich |
App Distribution | com.google.firebase:firebase-appdistribution:16.0.0-beta14 | Nicht erforderlich |
Authentication | com.google.firebase:firebase-auth:23.2.0 com.google.firebase:firebase-auth-ktx:23.2.0 |
Nicht erforderlich |
Cloud Firestore | com.google.firebase:firebase-firestore:25.1.2 com.google.firebase:firebase-firestore-ktx:25.1.2 |
Nicht erforderlich |
Cloud Functions for Firebase Client SDK | com.google.firebase:firebase-functions:21.1.1 com.google.firebase:firebase-functions-ktx:21.1.1 |
Nicht erforderlich |
Cloud Storage for Firebase | com.google.firebase:firebase-storage:21.0.1 com.google.firebase:firebase-storage-ktx:21.0.1 |
Nicht erforderlich |
Crashlytics | com.google.firebase:firebase-crashlytics:19.4.1 com.google.firebase:firebase-crashlytics-ktx:19.4.1 |
Nicht erforderlich |
In-App Messaging | com.google.firebase:firebase-inappmessaging:21.0.1 com.google.firebase:firebase-inappmessaging-ktx:21.0.1 |
Nicht erforderlich |
In-App Messaging Display | com.google.firebase:firebase-inappmessaging-display:21.0.1 com.google.firebase:firebase-inappmessaging-display-ktx:21.0.1 |
Nicht erforderlich |
Firebase Installationen | com.google.firebase:firebase-installations:18.0.0 com.google.firebase:firebase-installations-ktx:18.0.0 |
Nicht erforderlich |
Performance Monitoring | com.google.firebase:firebase-perf:21.0.4 com.google.firebase:firebase-perf-ktx:21.0.4 |
Nicht erforderlich |
Realtime Database | com.google.firebase:firebase-database:21.0.0 com.google.firebase:firebase-database-ktx:21.0.0 |
Nicht erforderlich |
Remote Config | com.google.firebase:firebase-config:22.1.0 com.google.firebase:firebase-config-ktx:22.1.0 |
Nicht erforderlich |
Vertex AI in Firebase | com.google.firebase:firebase-vertexai:16.2.0 | Nicht erforderlich |
Google Play services erforderlich oder empfohlen
Produkt | Bibliothek | Google Play services? |
---|---|---|
AdMob | com.google.android.gms:play-services-ads:24.0.0 | Empfohlen* |
Analytics | com.google.firebase:firebase-analytics:22.3.0 com.google.firebase:firebase-analytics-ktx:22.3.0 |
Empfohlen* |
App Check Play Integrity-Anbieter | com.google.firebase:firebase-appcheck-playintegrity:18.0.0 | Erforderlich |
App Check SafetyNet-Anbieter | com.google.firebase:firebase-appcheck-safetynet:16.1.2 | Erforderlich |
App Indexing | com.google.firebase:firebase-appindexing:20.0.0 | Erforderlich |
Cloud Messaging | com.google.firebase:firebase-messaging:24.1.0 com.google.firebase:firebase-messaging-ktx:24.1.0 |
Erforderlich |
Dynamic Links | com.google.firebase:firebase-dynamic-links:22.1.0 com.google.firebase:firebase-dynamic-links-ktx:22.1.0 |
Erforderlich |
Firebase ML Vision | com.google.firebase:firebase-ml-vision:24.1.0 | Erforderlich |
Firebase ML Benutzerdefiniertes Modell | com.google.firebase:firebase-ml-model-interpreter:22.0.4 | Erforderlich |
* Das Firebase SDK für Google Analytics kann Ereignisse auf jedem Gerät senden. Einige automatische Statistiken wie demografische Merkmale sind jedoch nur auf Geräten mit Google Play services verfügbar.