יחסי תלות של ערכות Firebase Android SDK ב-Google Play Services

חלק מ-Firebase Android SDKs תלויים ב-Google Play services, מה שאומר שהם יפעלו רק במכשירים ובאמולטורים שמותקן בהם Google Play services. ערכות ה-SDK האלה של Firebase מתקשרות עם Google Play services שירות הרקע במכשיר כדי לספק לאפליקציה API מאובטח, עדכני וקל משקל. במכשירי Android מסוימים, כמו מכשירי Amazon Kindle Fire או מכשירים שנמכרים באזורים מסוימים, לא מותקן Google Play services.

אילו ערכות Firebase Android SDK דורשות Google Play services?

ערכות Firebase SDK מחולקות לשלוש קטגוריות:

  • Play services נדרש – ערכות ה-SDK האלה דורשות Google Play services, אחרת הן לא פועלות.
  • Play services מומלץ – ערכות ה-SDK האלה דורשות Google Play services כדי להציע פונקציונליות מלאה, אבל הן עדיין מציעות רוב הפונקציונליות גם ללא Google Play services.
  • Play services לא נדרש – ערכות ה-SDK האלה לא דורשות Google Play services כדי לפעול באופן מלא.

הטבלאות שלמטה מדויקות רק לגבי הגרסה האחרונה של כל SDK. יכול להיות שגרסאות ישנות יותר יכללו דרישות מחמירות יותר.

Google Play services לא נדרש

מוצר ספרייה Google Play services?
Firebase AI Logic 1 com.google.firebase:firebase-ai:17.0.0 לא נדרש
App Check ספקים בהתאמה אישית וספקים לניפוי באגים com.google.firebase:firebase-appcheck:19.0.0
com.google.firebase:firebase-appcheck-ktx:18.0.0
com.google.firebase:firebase-appcheck-debug:19.0.0
לא נדרש
App Distribution API com.google.firebase:firebase-appdistribution-api:16.0.0-beta16
com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta15
לא נדרש
App Distribution com.google.firebase:firebase-appdistribution:16.0.0-beta16 לא נדרש
Authentication com.google.firebase:firebase-auth:24.0.0
com.google.firebase:firebase-auth-ktx:23.2.1
לא נדרש
Cloud Firestore com.google.firebase:firebase-firestore:26.0.0
com.google.firebase:firebase-firestore-ktx:25.1.4
לא נדרש
Cloud Functions for Firebase Client SDK com.google.firebase:firebase-functions:22.0.0
com.google.firebase:firebase-functions-ktx:21.2.1
לא נדרש
Cloud Storage for Firebase com.google.firebase:firebase-storage:22.0.0
com.google.firebase:firebase-storage-ktx:21.0.2
לא נדרש
Crashlytics com.google.firebase:firebase-crashlytics:20.0.0
com.google.firebase:firebase-crashlytics-ktx:19.4.4
לא נדרש
Data Connect com.google.firebase:firebase-dataconnect:17.0.0 לא נדרש
In-App Messaging com.google.firebase:firebase-inappmessaging:22.0.0
com.google.firebase:firebase-inappmessaging-ktx:21.0.2
לא נדרש
In-App Messaging רשת המדיה com.google.firebase:firebase-inappmessaging-display:22.0.0
com.google.firebase:firebase-inappmessaging-display-ktx:21.0.2
לא נדרש
Firebase התקנות com.google.firebase:firebase-installations:19.0.0
com.google.firebase:firebase-installations-ktx:18.0.0
לא נדרש
Performance Monitoring com.google.firebase:firebase-perf:22.0.0
com.google.firebase:firebase-perf-ktx:21.0.5
לא נדרש
Realtime Database com.google.firebase:firebase-database:22.0.0
com.google.firebase:firebase-database-ktx:21.0.0
לא נדרש
Remote Config com.google.firebase:firebase-config:23.0.0
com.google.firebase:firebase-config-ktx:22.1.2
לא נדרש

‫1 Firebase AI Logic נקרא בעבר 'Vertex AI in Firebase' עם החבילה com.google.firebase:firebase-vertexai.

מוצר ספרייה Google Play services?
AdMob com.google.android.gms:play-services-ads:24.5.0 מומלץ 2
Analytics com.google.firebase:firebase-analytics:23.0.0
com.google.firebase:firebase-analytics-ktx:22.5.0
מומלץ 2
App Check ספק Play Integrity com.google.firebase:firebase-appcheck-playintegrity:19.0.0 חובה
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:25.0.0
com.google.firebase:firebase-messaging-ktx:24.1.2
חובה
Dynamic Links com.google.firebase:firebase-dynamic-links:22.1.0
com.google.firebase:firebase-dynamic-links-ktx:22.1.0
חובה
Firebase ML ראייה com.google.firebase:firebase-ml-vision:24.1.0 חובה
Firebase ML מודל מותאם אישית com.google.firebase:firebase-ml-model-interpreter:22.0.4 חובה

2 ה-Firebase SDK ל-Google Analytics יכול לשלוח אירועים בכל מכשיר, אבל חלק מהתובנות האוטומטיות, כמו נתונים דמוגרפיים, זמינות רק במכשירים עם Google Play services.