חשוב: החל מ-
1 במאי 2024,
נדרשות חתימות ומניפסטי פרטיות לאפליקציות ל-iOS שמשתמשות בערכות SDK נפוצות, כולל GoogleSignIn-iOS. צריך לשדרג ל-GoogleSignIn-iOS גרסה 7.1.0 ואילך לפני 1 במאי 2024. פועלים לפי ההוראות ב
מדריך השדרוג.
הפעלת האכיפה של בדיקת האפליקציה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אחרי שתבינו איך App Check ישפיע על המשתמשים שלכם ותהיו מוכנים להמשיך, תוכלו להפעיל את האכיפה של App Check.
מפעילים את האכיפה ב Google API Console
כדי להפעיל את האכיפה, מבצעים את השלבים הבאים:
עוברים לתצוגת העריכה של לקוח ה-iOS בדף Credentials. בקטע Google Identity for iOS בצד שמאל של הדף יופיעו מדדים.
לוחצים על הלחצן ENFORCE (החלה) ומאשרים את הבחירה. אחרי שהאכיפה תופעל, כל הבקשות שלא אומתו מהלקוח שלכם יידחו.
הערה : אחרי שמפעילים את האכיפה, יכול להיות שיחלפו עד 15 דקות עד שהשינויים ייכנסו לתוקף.
הפעלת האכיפה במסוף Firebase
אפשר לאכוף את App Check עבור לקוחות ספציפיים של iOS או עבור כל הלקוחות שלכם ב-iOS
הפעלה של אכיפה בכל לקוחות iOS
כדי להפעיל את האכיפה של כניסה באמצעות חשבון Google ב-iOS, צריך לבצע את השלבים הבאים.
אחרי שמפעילים את האכיפה, כל הבקשות שלא אומתו יידחו, כולל בקשות שמשויכות ללקוחות OAuth ב-iOS שלא מקושרים לאפליקציית Firebase.
פותחים את הקטע App Check במסוף Firebase.
מרחיבים את הקטע Google Identity for iOS.
לוחצים על החלה ומאשרים את הבחירה.
שימו לב: יכולות לעבור עד 15 דקות אחרי הפעלת האכיפה עד שהיא תיכנס לתוקף.
הפעלת אכיפה ללקוחות ספציפיים של iOS
אפשר גם להגדיר אכיפה של App Check ללקוחות OAuth ספציפיים ב-iOS. כדי לעשות זאת:
פותחים את לקוחות OAuth בקטע App Check במסוף Firebase.
מרחיבים את תצוגת המדדים של לקוח ה-OAuth שרוצים להגדיר.
אם הלקוח עדיין לא מקושר לאפליקציה, צריך לקשר אותו.
לוחצים על יצירת ביטול של אכיפת מדיניות.
בוחרים אם לאכוף את App Check עבור לקוח ה-OAuth הזה או לא לאכוף אותו. ההגדרה הזו מבטלת את ההגדרה הגלובלית של הפרויקט בנושא אכיפת זהות Google ב-iOS.
שימו לב: יכולות לעבור עד 15 דקות אחרי הפעלת האכיפה עד שהיא תיכנס לתוקף.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[[["\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."]]