مروری بر خدمات گوگل پلی
با مجموعهها، منظم بمانید ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
سرویسهای Google Play مجموعه گستردهای از کیتهای توسعه نرمافزار (SDK) را در Android برای ساخت برنامه شما، افزایش حریم خصوصی و امنیت، جذب کاربران و رشد کسبوکار شما نیرو میدهد. همانطور که در شکل 1 نشان داده شده است، این SDKها فقط به یک کتابخانه سرویس گیرنده سبک وزن نیاز دارند که در برنامه شما گنجانده شود. در زمان اجرا، کتابخانه سرویس گیرنده با یک پیاده سازی کامل در حال اجرا در برنامه اصلی خدمات Google Play ارتباط برقرار می کند.
با ارائه اجرای مشترک، سمت مشتری، خدمات Google Play:
- به بهینه سازی منابع روی دستگاه، مانند فضای ذخیره سازی و حافظه، برای بهبود کیفیت برنامه و تجربه کلی کاربران شما کمک می کند.
- بهروزرسانیهای خودکار را دریافت میکند - مستقل از بهروزرسانیهای سیستمعامل، OEM یا برنامه - بنابراین کاربران شما سریعتر بهبودها و رفع اشکالها را دریافت میکنند.
- سازگاری به عقب با Android 6.0 (سطح API 23) را ارائه می دهد و در فرم فاکتورهای مختلف کار می کند و به شما امکان می دهد با تلاش کمتر به کاربران بیشتری دسترسی پیدا کنید.

شکل 1. خدمات Google Play بهروزرسانیهای منظمی را دریافت میکند که حاوی بهبودها و رفع اشکال است.
خدمات Google Play چگونه کار می کند
SDK ها
هر SDK خدمات Google Play شامل یک کتابخانه سرویس گیرنده سبک وزن با APIهایی است که با سرویسی که در برنامه خدمات Google Play اجرا می شود تعامل دارند. این کتابخانهها همچنین کمکهایی را برای رسیدگی به مشکلات زمان اجرا فراهم میکنند، مانند مواقعی که یک سرویس از دست رفته، غیرفعال است یا قدیمی است. وقتی کوچک کردن کد را فعال میکنید، بهینهساز R8 با حذف کدهای استفاده نشده، تأثیر SDK را بر اندازه بسته شما کاهش میدهد.
برای دسترسی به ویژگیها یا محصولات جدید خدمات Google Play، زمانی که نسخه جدیدی در مخزن Google Maven منتشر شد ، SDK را ارتقا دهید.
خدمات
سرویسهای Google Play شامل مجموعهای اصلی از سرویسهای پسزمینه روی دستگاه است که در همه دستگاههای Android دارای گواهی Google اجرا میشوند.
بهروزرسانیهای خودکار خدمات Google Play مستقل از بهروزرسانیهای تصویر سیستم حامل، سیستمعامل یا OEM ارائه میشوند. بهطور کلی، دستگاههای دارای Android نسخه 6.0 یا بالاتر بهصورت خودکار بهروزرسانیها را دریافت میکنند، مشروط بر اینکه این دستگاهها سرویسهای Google Play را نصب کرده و فضای ذخیرهسازی کافی در دسترس داشته باشند. این بدان معناست که کاربران بهبودها و رفع باگها را سریعتر دریافت میکنند و میتوانید از آخرین APIها استفاده کنید و در عین حال به اکثر دستگاههای موجود در اکوسیستم اندروید دسترسی پیدا کنید. دستگاههای قدیمیتر از Android 6.0 یا دستگاههای بدون نصب سرویسهای Google Play پشتیبانی نمیشوند.
مراحل بعدی: برنامه خود را راه اندازی کنید
برای شروع استفاده از API خدمات Google Play در برنامه خود، این راهنمای تنظیم را بخوانید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-15 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-08-15 بهوقت ساعت هماهنگ جهانی."],[[["\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,["Google 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)."]]