نظرة عامة على "خدمات Google Play"
تنظيم صفحاتك في مجموعات يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توفّر "خدمات Google Play" مجموعة كبيرة من حِزم تطوير البرامج (SDK) على Android لإنشاء تطبيقك وتعزيز الخصوصية والأمان والتفاعل مع المستخدمين وتطوير نشاطك التجاري. لا تتطلّب حِزم SDK هذه سوى تضمين مكتبة برامج بسيطة في تطبيقك، كما هو موضّح في الشكل 1. أثناء وقت التشغيل، تتواصل مكتبة العميل مع عملية تنفيذ كاملة تعمل في تطبيق "خدمات Google Play" الرئيسي.
من خلال توفير عمليات تنفيذ مشترَكة من جهة العميل، تتيح "خدمات Google Play" ما يلي:
- تساعد هذه الخدمة في تحسين استخدام موارد الجهاز، مثل مساحة التخزين والذاكرة، من أجل تحسين جودة التطبيق وتجربة المستخدمين بشكل عام.
- تتلقّى تحديثات تلقائية بغض النظر عن تحديثات نظام التشغيل أو الشركة المصنّعة للجهاز أو التطبيق، ما يتيح للمستخدمين الاستفادة من التحسينات وإصلاحات الأخطاء بشكل أسرع.
- توفّر هذه المكتبة توافقًا مع الأنظمة القديمة حتى Android 6.0 (المستوى 23 من واجهة برمجة التطبيقات) وتعمل على مختلف أشكال الأجهزة، ما يتيح لك الوصول إلى المزيد من المستخدمين بجهد أقل.
الشكل 1. تتلقّى "خدمات Google Play" تحديثات منتظمة تتضمّن تحسينات وإصلاحات للأخطاء.
طريقة عمل "خدمات Google Play"
حزم SDK
تتضمّن كل حزمة SDK من "خدمات Google Play" مكتبة برامج خفيفة الوزن تتضمّن واجهات برمجة تطبيقات تتفاعل مع خدمة تعمل في تطبيق "خدمات Google Play". توفر هذه المكتبات أيضًا أدوات مساعدة للتعامل بسلاسة مع المشاكل التي تحدث أثناء التشغيل، مثل عدم توفّر خدمة أو إيقافها أو انتهاء صلاحيتها. عند تفعيل تصغير الرموز البرمجية، يعمل محسِّن R8 على تقليل تأثير حزمة SDK في حجم الحزمة بشكل أكبر من خلال إزالة الرموز البرمجية غير المستخدَمة.
للوصول إلى ميزات أو منتجات جديدة في "خدمات Google Play"، عليك ترقية حزمة SDK عند إصدار إصدار جديد في مستودع Google Maven.
الخدمات
تتضمّن "خدمات Google Play" مجموعة أساسية من الخدمات التي تعمل في الخلفية على الجهاز، وهي تعمل على جميع أجهزة Android المعتمَدة من Google.
يتم توفير التحديثات التلقائية لخدمات Google Play بشكل مستقل عن التحديثات التي يقدّمها مشغّل شبكة الجوّال أو نظام التشغيل أو الشركة المصنّعة للمعدات الأصلية. بشكل عام، تتلقّى الأجهزة التي تعمل بالإصدار 6.0 من نظام التشغيل Android أو الإصدارات الأحدث التحديثات تلقائيًا، شرط أن تكون "خدمات Google Play" مثبّتة على هذه الأجهزة وأن يتوفّر فيها مساحة تخزين كافية. ويعني ذلك أنّ المستخدمين سيحصلون على التحسينات وإصلاحات الأخطاء بشكل أسرع، ويمكنك الاستفادة من أحدث واجهات برمجة التطبيقات مع الوصول إلى معظم الأجهزة في منظومة Android المتكاملة. لا تتوافق الخدمة مع الأجهزة التي تعمل بإصدار أقدم من Android 6.0 أو الأجهزة التي لم يتم تثبيت "خدمات Google Play" عليها.
الخطوات التالية: إعداد تطبيقك
لبدء استخدام واجهات برمجة التطبيقات الخاصة بخدمات Google Play في تطبيقك، يُرجى قراءة دليل الإعداد هذا.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-17 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-17 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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)."]]