ملاحظة مُهمّة: اعتبارًا من
1 أيار (مايو) 2024،
ستطلب شركة Apple بيانات الخصوصية والتوقيعات في تطبيقات iOS التي تستخدم حِزم SDK شائعة الاستخدام، بما في ذلك GoogleSignIn-iOS. يجب الترقية إلى الإصدار 7.1.0 من GoogleSignIn-iOS أو الإصدارات الأحدث قبل 1 أيار (مايو) 2024. اتّبِع
دليل الترقية.
تفعيل فرض فحص التطبيقات
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
عندما تفهم كيف سيؤثر App Check في المستخدمين
وتكون مستعدًا للمتابعة، يمكنك تفعيل فرض استخدام App Check.
تفعيل التنفيذ في Google API Console
لتفعيل فرض القيود، أكمِل الخطوات التالية:
انتقِل إلى عرض التعديل الخاص بعميل iOS في صفحة "بيانات الاعتماد". ستظهر لك هناك مقاييس على يسار الصفحة ضمن قسم Google Identity لنظام التشغيل iOS.
انقر على الزر فرض وأكِّد اختيارك. بعد تفعيل هذا الخيار، سيتم رفض جميع الطلبات غير المؤكَّدة من عميلك.
ملاحظة : بعد تفعيل خيار فرض القيود، قد يستغرق تطبيق التغييرات ما يصل إلى 15 دقيقة.
تفعيل فرض القيود في "وحدة تحكّم Firebase"
يمكن فرض استخدام App Check على عملاء iOS معيّنين أو على جميع عملاء iOS
تفعيل فرض القيود على جميع أجهزة iOS
لتفعيل فرض استخدام ميزة "تسجيل الدخول باستخدام Google" على أجهزة iOS، أكمِل الخطوات التالية.
بعد تفعيل ميزة فرض القيود، سيتم رفض جميع الطلبات التي لم يتم التحقّق منها، بما في ذلك الطلبات المرتبطة ببرامج OAuth على iOS غير المرتبطة بتطبيق على Firebase.
افتح قسم App Check في وحدة تحكّم Firebase.
وسِّع قسم هوية Google على أجهزة iOS.
انقر على فرض وأكِّد اختيارك.
يُرجى العِلم أنّه قد يستغرق تطبيق هذا الإجراء ما يصل إلى 15 دقيقة بعد تفعيله.
تفعيل التنفيذ لبرامج iOS معيّنة
يمكنك أيضًا ضبط تطبيق App Check على فرض استخدام معرّفات عملاء OAuth معيّنة على أجهزة iOS. لإجراء ذلك، اتّبِع الخطوات التالية:
افتح عملاء OAuth ضمن قسم "فحص التطبيقات" في
وحدة تحكّم Firebase.
وسِّع عرض المقاييس لعميل OAuth الذي تريد إعداده.
إذا لم يكن حساب العميل مرتبطًا بتطبيق بعد، عليك ربطه.
انقر على إنشاء تجاوز للتنفيذ.
اختَر ما إذا كنت تريد فرض استخدام App Check لهذا العميل OAuth أو عدم فرضه. يؤدي هذا الإعداد إلى إلغاء الإعداد العام لفرض استخدام هوية Google على نظام التشغيل iOS في مشروعك.
يُرجى العِلم أنّه قد يستغرق تطبيق هذا الإجراء ما يصل إلى 15 دقيقة بعد تفعيله.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eApp Check enforcement can be enabled to ensure only verified requests are accepted, rejecting unverified ones.\u003c/p\u003e\n"],["\u003cp\u003eEnforcement can be enabled through the Google API Console or the Firebase Console, with options for specific or all iOS clients.\u003c/p\u003e\n"],["\u003cp\u003eEnabling enforcement involves navigating to the respective platform's console, locating the App Check or Google Identity for iOS settings, and clicking the 'Enforce' button.\u003c/p\u003e\n"],["\u003cp\u003eAfter enabling, it takes up to 15 minutes for the changes to take effect, impacting all subsequent requests.\u003c/p\u003e\n"],["\u003cp\u003eFirebase Console provides granular control, allowing enforcement overrides for individual iOS OAuth clients linked to your project.\u003c/p\u003e\n"]]],[],null,["When you [understand how App Check will affect your users](/identity/sign-in/ios/appcheck/monitor-metrics)\nand you're ready to proceed, you can enable App Check enforcement.\n\nEnable enforcement in the Google API Console\n\nTo enable enforcement, complete the following steps:\n\n1. Go to the edit view of your iOS client in the\n [Credentials page](https://console.cloud.google.com/apis/credentials). There, you will see metrics to the right of the page\n under the **Google Identity for iOS** section.\n\n2. Click the **ENFORCE** button and confirm your choice. Once enforcement is\n active, all unverified requests from your client will be rejected.\n\n**Note** : After you enable enforcement, it can take up to 15 minutes for the\nchanges to take effect.\n\nEnable enforcement in the Firebase Console\n\nApp Check can be enforced for specific iOS clients or for all your iOS clients\n\nEnable enforcement for all iOS clients\n\nTo enable enforcement for Google Sign-in on iOS, complete the following steps.\nOnce you enable enforcement, all unverified requests will be rejected, including\nrequests associated with iOS OAuth clients that aren't linked to a Firebase app.\n\n1. Open the [App Check](https://console.firebase.google.com/project/_/appcheck) section of the Firebase console.\n\n2. Expand the **Google Identity for iOS** section.\n\n3. Click **Enforce** and confirm your choice.\n\nNote that it can take up to 15 minutes after you enable enforcement for it to\ntake effect.\n\nEnable enforcement for specific iOS clients\n\nYou can also configure App Check enforcement for specific iOS OAuth clients. To\ndo so:\n\n1. Open [OAuth clients](https://console.firebase.google.com/project/_/appcheck/products/oauth) under the App Check section of\n the Firebase console.\n\n2. Expand the metrics view for the OAuth client you want to configure.\n\n3. If the client is not yet linked to an app, do so.\n\n4. Click **Create enforcement override**.\n\n5. Choose whether to enforce or unenforce App Check for this OAuth client. This\n setting overrides your project's global Google Identity for iOS enforcement\n setting.\n\nNote that it can take up to 15 minutes after you enable enforcement for it to\ntake effect."]]