שימוש בהגבלת קהל להפצה כדי להגביל את הפצת האפליקציה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי להפחית באופן משמעותי את הסיכוי להפיץ בטעות גרסה של האפליקציה שעדיין לא מוכנה, אפשר להשתמש בהגבלת קהל להפצה בקובץ ה-App Bundle או ב-APK. אפשר להשתמש באפשרות הזו כדי למנוע הפצת build למשתמשים בסביבת ייצור דרך Play Console, או אפילו להפצה דרך Play Console.
הסרת השימוש בהגבלות קהל
כדי להשתמש בהגבלת קהל של פריט תוכן, צריך להוסיף רכיב <meta-data> לרכיב <application> בקובץ AndroidManifest.xml. הרכיב הזה קובע עד כמה יכולה להתקדם בהפצה של ה-build.
המאפיין android:value של התג <meta-data> צריך להיות מוגדר למחרוזת
הריקה, והמאפיין android:name חייב להיות אחד מהערכים הבאים:
אפשר להעלות את קובץ ה-App Bundle או את קובץ ה-APK ל-Play Console ולהפיץ אותו למשתמשים באמצעות 'שיתוף פנימי של אפליקציות' או כל מסלול בדיקה, כולל בדיקה פתוחה. לא ניתן לכלול אותו בגרסה במסלול לסביבת הייצור.
המטרה של הפעולה הזו היא למנוע השקה מקרית של גרסאות בדיקה של אפליקציות למשתמשים בסביבת הייצור.
אפשר להעלות את קובץ ה-App Bundle או ה-APK ל-Play Console ולהפיץ אותו למשתמשים באמצעות 'שיתוף אפליקציות פנימי' או כל מסלול אחר לבדיקה בקבוצה מוגדרת. לא ניתן לכלול אותה במהדורה במסלולים לסביבת הייצור או במסלולים לבדיקות פתוחות.
המטרה של הבדיקה הזו היא למנוע השקה בטעות של גרסאות בדיקה של אפליקציות למספר גדול של משתמשים.
אפשר להעלות את קובץ ה-App Bundle או ה-APK ל-Play Console ולהפיץ אותו למשתמשים באמצעות שיתוף אפליקציות פנימי או מסלול הפצה לבדיקה פנימית. אי אפשר לכלול אותה בגרסה במסלול לסביבת הייצור, ב-Open Testing או ב-Closed Testing.
הפעולה הזו נועדה
למנוע הפצה בטעות של גרסאות בדיקה של אפליקציות מחוץ
לצוות המיידי שלך.
אי אפשר להעלות את ה-App Bundle או את ה-APK ל-Play Console או להפיץ אותו דרך Play Console.
הפעולה הזו נועדה למנוע הפצה של גרסאות
למפתחים בלבד של אפליקציות לכל המשתמשים. לדוגמה, גרסה של build שבה תכונות אבטחה מרכזיות מושבתות כדי להקל על ניפוי באגים.
לדוגמה, כדי למנוע את פרסום גרסה של build למשתמשים בסביבת הייצור, מעדכנים את הקובץ AndroidManifest.xml באופן הבא:
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון 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-07-27 (שעון UTC)."],[],[],null,["# Use a release audience restriction to limit your app's distribution\n\nYou can greatly reduce the chances of accidentally distributing a version of\nyour app that isn't ready yet by using a release audience restriction in your\napp bundle or APK. You can use this to prevent a build from being released to\nproduction users through Play Console, or even from being distributed through\nPlay Console at all.\n\nRelease audience restrictions usage\n-----------------------------------\n\nTo use a release audience restriction, you must add a `\u003cmeta-data\u003e` element to\nthe `\u003capplication\u003e` element in your `AndroidManifest.xml` file. This element\ncontrols how far the distribution of the build can progress.\nThe `\u003cmeta-data\u003e` tag must have its `android:value` attribute set to the empty\nstring, and the `android:name` attribute must be one of the following values:\n\n| Name | Effect |\n|-----------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` com.google.android.play.largest_release_audience.NONPRODUCTION ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or any testing track, including open testing. It **cannot** be included in a release on the Production track. This is intended to prevent accidental release of test versions of apps to production users. |\n| ` com.google.android.play.largest_release_audience.CLOSED_TESTING ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or any closed testing track. It **cannot** be included in a release on the Production or Open Testing tracks. This is intended to prevent accidental release of test versions of apps to a large number of users. |\n| ` com.google.android.play.largest_release_audience.INTERNAL_TESTING ` | The app bundle or APK can be uploaded to Play Console and distributed to users through Internal App Sharing or the Internal Test Track. It **cannot** be included in a release on the Production, Open Testing, or Closed Testing tracks. This is intended to prevent accidental release of test versions of apps outside your immediate team. |\n| ` com.google.android.play.largest_release_audience.STOPSHIP ` | The app bundle or APK cannot be uploaded to or distributed through Play Console. This is intended to prevent releasing development-only versions of apps to any users. For example, a build which has key security features disabled for easier debugging. |\n\n| **Note:** Because the restriction is built into your app bundle or APK, you can only change it by compiling a new build of your app with a new versionCode.\n\nFor example, to prevent a build being released to production users, update your\n`AndroidManifest.xml` file as follows: \n\n \u003cmanifest ... \u003e\n \u003capplication ... \u003e\n ...\n \u003cmeta-data\n android:name=\"com.google.android.play.largest_release_audience.NONPRODUCTION\"\n android:value=\"\" /\u003e\n \u003c/application\u003e\n \u003c/manifest\u003e\n\n| **Important:** The `\u003cmeta-data\u003e` element must be a direct child of the `\u003capplication\u003e` element in order for it to be detected by Google Play. It won't be detected if it is part of an `\u003cactivity\u003e` or `\u003cservice\u003e` element. If there are multiple restrictions in your application manifest, then the most restrictive will be applied.\n| **Tip:** If you have an Android library that adds some optional features for testing or internal debugging, you can add the restriction to the library's manifest. Any build which includes the library will then automatically include the release audience restriction."]]