סקירה כללית של Google Play Services
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
חבילת Google Play Services מפעילה מגוון רחב של ערכות SDK ב-Android, שמאפשרות לפתח את האפליקציה, לשפר את הפרטיות והאבטחה, לעורר עניין בקרב המשתמשים ולפתח את העסק. כדי להשתמש בערכות ה-SDK האלה, צריך לכלול באפליקציה ספריית לקוח קלה, כמו שמוצג באיור 1. בזמן הריצה, ספריית הלקוח מתקשרת עם הטמעה מלאה שפועלת באפליקציית השירותים הראשית של Google Play.
באמצעות הטמעות משותפות בצד הלקוח, Google Play Services:
- התכונה עוזרת לבצע אופטימיזציה של משאבים במכשיר, כמו אחסון וזיכרון, כדי לשפר את איכות האפליקציה ואת חוויית המשתמש הכוללת.
- מקבל עדכונים אוטומטיים – ללא קשר לעדכוני מערכת הפעלה, יצרן ציוד מקורי או אפליקציות – כך שהמשתמשים מקבלים שיפורים ותיקוני באגים מהר יותר.
- הספרייה מספקת תאימות לאחור ל-Android 6.0 (רמת API 23) ופועלת במגוון גורמי צורה, כך שתוכלו להגיע ליותר משתמשים בפחות מאמץ.
איור 1. Google Play Services מקבל עדכונים באופן קבוע, והם כוללים שיפורים ותיקוני באגים.
איך פועל Google Play Services
ערכות SDK
כל Google Play services SDK כולל ספריית לקוח קלה עם ממשקי API שפועלים באינטראקציה עם שירות שפועל באפליקציית Google Play Services.
הספריות האלה מספקות גם כלים שיעזרו לכם לטפל בצורה חלקה בבעיות בזמן הריצה, למשל כששירות חסר, מושבת או לא עדכני. כשמפעילים את התכונה 'הקטנת קוד', הכלי לאופטימיזציה R8 מקטין עוד יותר את ההשפעה של ה-SDK על גודל החבילה על ידי הסרת קוד שלא נמצא בשימוש.
כדי לגשת לתכונות או למוצרים חדשים של שירותי Google Play, צריך לשדרג את ה-SDK כשגרסה חדשה מתפרסמת במאגר Google Maven.
שירותים
Google Play Services כוללת קבוצה מרכזית של שירותים שפועלים ברקע במכשיר בכל מכשירי Android שאושרו על ידי Google.
עדכונים אוטומטיים של Google Play Services מועברים ללא קשר לעדכונים של תמונת המערכת של הספק, מערכת ההפעלה או יצרן הציוד המקורי. באופן כללי, מכשירים עם Android 6.0 ומעלה מקבלים עדכונים באופן אוטומטי, בתנאי שמותקנים בהם שירותי Google Play ויש בהם מספיק נפח אחסון. המשמעות היא שהמשתמשים מקבלים שיפורים ותיקוני באגים מהר יותר, ואתם יכולים לנצל את ממשקי ה-API העדכניים ביותר תוך כדי הגעה לרוב המכשירים בסביבת Android. אין תמיכה במכשירים עם Android בגרסה ישנה יותר מ-6.0, או במכשירים שלא מותקנת בהם Google Play Services.
השלבים הבאים: הגדרת האפליקציה
כדי להתחיל להשתמש בממשקי API של שירותי Google Play באפליקציה, כדאי לקרוא את מדריך ההגדרה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-09-05 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-09-05 (שעון UTC)."],[[["\u003cp\u003eGoogle Play services optimizes app performance and user experience by providing shared, client-side implementations of SDKs, minimizing resource usage.\u003c/p\u003e\n"],["\u003cp\u003eAutomatic updates to Google Play services ensure users receive the latest improvements and bug fixes quickly, independent of OS or device updates.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Play services offers broad compatibility, supporting Android 6.0 (API level 23) and above, various form factors, enabling wider user reach with less development effort.\u003c/p\u003e\n"],["\u003cp\u003eSDKs powered by Google Play services utilize lightweight client libraries, reducing app size and ensuring efficient interactions with Google services.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Play services runs essential Google services in the background on certified Android devices, delivering automatic updates for enhanced functionality and security.\u003c/p\u003e\n"]]],["Google Play services provides lightweight SDK client libraries for Android apps, which interact with shared services on the device. These services optimize device resources, receive automatic updates independent of OS or app updates, and offer backward compatibility to Android 6.0. Developers can update SDKs to access new features through the Google Maven repository. Automatic updates are delivered to devices with Google Play services installed and running Android 6.0 or later. R8 optimizer can reduce the footprint of each SDK.\n"],null,["\u003cbr /\u003e\n\nGoogle Play services powers a broad set of SDKs on Android for building\nyour app, enhancing privacy and security, engaging users, and growing your\nbusiness. These SDKs only require a lightweight client library to be\nincluded in your app, as shown in figure 1. At runtime, the client library\ncommunicates with a full implementation running in the main Google\nPlay services application.\n\nBy providing shared, client-side implementations, Google Play services:\n\n- Helps to optimize on-device resources, such as storage and memory, to improve [app quality](https://developer.android.com/quality) and your users' overall experience.\n- Receives automatic updates---independent of OS, OEM, or app updates---so your users receive improvements and bug fixes more quickly.\n- Provides backward compatibility to Android 6.0 (API level 23) and works across various form factors, enabling you to reach more users with less effort.\n\n**Figure 1.** Google Play services receives regular updates that contain\nimprovements and bug fixes.\n\nHow Google Play services works\n\nSDKs\n\nEach Google Play services SDK includes a lightweight client library with APIs\nthat interact with a service that runs in the Google Play services application.\nThese libraries also provide helpers to gracefully handle runtime issues, such\nas when a service is missing, disabled, or out-of-date. When you\nenable code shrinking, the\n[R8 optimizer](https://developer.android.com/studio/build/shrink-code)\nfurther reduces the SDK's impact on your package size by removing unused code.\n\nTo access new Google Play services features or products, upgrade the SDK when a\nnew version is [released](/android/guides/releases) to the [Google Maven\nrepository](https://maven.google.com/web/index.html#com.google.android.gms).\n\nServices\n\nGoogle Play services contains a core set of on-device background services that\nrun on all Google-certified Android devices.\n\nAutomatic updates to Google Play services are delivered independent of carrier,\nOS, or OEM system image updates. In general, devices running Android 6.0 or\nhigher receive updates automatically, provided that these devices have Google\nPlay services installed and sufficient storage available. This means that users\nreceive improvements and bug fixes more quickly, and you can take advantage of\nthe latest APIs while reaching most devices in the Android ecosystem. Devices\nolder than Android 6.0, or devices without Google Play services installed,\naren't supported.\n\nNext steps: set up your app\n\nTo begin using Google Play services APIs in your app, read this [setup\nguide](/android/guides/setup)."]]