הקצאת רישיונות לשימוש באפליקציות
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ב-Google Play יש שירות רישוי שמאפשר לאכוף את מדיניות הרישוי של האפליקציות שאתם מפרסמים ב-Google Play. באמצעות הרישוי ב-Google Play, האפליקציה יכולה לשלוח שאילתה ל-Google Play בזמן הריצה כדי לקבל את סטטוס הרישוי של המשתמש הנוכחי, ולאחר מכן לאפשר או לאסור שימוש נוסף בהתאם.
באמצעות השירות, אפשר להחיל מדיניות רישוי גמישה על כל אפליקציה בנפרד – כל אפליקציה יכולה לאכוף את הרישוי בדרך המתאימה לה ביותר. במקרה הצורך, אפשר להחיל באפליקציה אילוצים מותאמים אישית על סמך סטטוס הרישוי שהתקבל מ-Google Play.
לדוגמה, אפליקציה יכולה לבדוק את סטטוס הרישוי ולאחר מכן להחיל אילוצים מותאמים אישית שמאפשרים למשתמש להריץ אותה ללא רישיון למשך תקופת תוקף ספציפית. אפליקציה יכולה גם להגביל את השימוש בה למכשיר ספציפי, בנוסף לאילוצים אחרים.
שירות הרישוי הוא אמצעי מאובטח לשליטה בגישה לאפליקציות שלכם. כשאפליקציה בודקת את סטטוס הרישוי, שרת Google Play חותם על התגובה של סטטוס הרישוי באמצעות זוג מפתחות שמשויך באופן ייחודי לאפליקציה. אמנם אפשר לאחסן את המפתח הציבורי בקובץ .apk
המהדר של האפליקציה, אבל הרבה יותר בטוח לאמת את התגובה לגבי סטטוס הרישיון בשרת מהימן.
כל אפליקציה שאתם מפרסמים דרך Google Play יכולה להשתמש בשירות הרישוי של Google Play. אין צורך בחשבון מיוחד או בהרשמה. בנוסף, מכיוון שהשירות לא משתמש בממשקי API ייעודיים של מסגרות, אפשר להוסיף רישיון לכל אפליקציה שמשתמשת ברמת API מינימלית של 3 ומעלה.
הערה: שירות הרישוי של Google Play מיועד בעיקר לאפליקציות בתשלום שרוצות לוודא שהמשתמש הנוכחי אכן שילם על האפליקציה ב-Google Play. עם זאת, כל אפליקציה (כולל אפליקציות בחינם) יכולה להשתמש בשירות הרישוי כדי להתחיל את ההורדה של קובץ הרחבה של APK. במקרה כזה, הבקשה שהאפליקציה שולחת לשירות הרישוי היא לא לבדוק אם המשתמש שילם על האפליקציה, אלא לבקש את כתובת ה-URL של קובצי ההרחבה. למידע נוסף על הורדת קובצי הרחבה לאפליקציה, קראו את המדריך בנושא קובצי הרחבה של APK.
למידע נוסף על שירות הרישוי של אפליקציות ב-Google Play ועל שילוב שלו באפליקציות, כדאי לעיין במסמכים הבאים:
- סקירה כללית על רישוי
- תיאור של אופן הפעולה של השירות ודוגמה להטמעת רישוי אופיינית.
- הגדרה לצורך רישוי
- הסבר על הגדרת חשבון Google Play, סביבת הפיתוח וסביבת הבדיקה כדי להוסיף רישוי לאפליקציה.
- הוספת אימות רישיון בצד השרת לאפליקציה
- מדריך מפורט להוספת אימות רישוי בצד השרת לאפליקציה.
- חומר עזר בנושא רישוי
- מספק מידע מפורט על הכיתות של ספריית הרישוי ועל קודי התגובה של השירות.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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,["# App Licensing\n\nGoogle Play offers a licensing service that lets you enforce licensing policies for\napplications that you publish on Google Play. With Google Play Licensing, your application can\nquery Google Play at run time to obtain the licensing status for the current user, then allow or\ndisallow further use as appropriate.\n\nUsing the service, you can apply a flexible licensing policy on an application-by-application\nbasis---each application can enforce licensing in the way most appropriate for it. If necessary,\nan application can apply custom constraints based on the licensing status obtained from Google Play.\nFor example, an application can check the licensing status and then apply custom constraints\nthat allow the user to run it unlicensed for a specific validity period. An application can also\nrestrict use of the application to a specific device, in addition to any other constraints.\n\nThe licensing service is a secure means of controlling access to your applications. When an\napplication checks the licensing status, the Google Play server signs the licensing status\nresponse using a key pair that is uniquely associated with the application. Although it's possible\nfor your application to store the public key in its compiled `.apk` file, it's much\nsafer to verify the licensing status response on a server that you trust.\n\nAny application that you publish through Google Play can use the Google Play Licensing\nservice. No special account or registration is needed. Additionally, because the service uses no\ndedicated framework APIs, you can add licensing to any application that uses a minimum API level of\n3 or higher.\n\n**Note:** The Google Play Licensing service is primarily intended\nfor paid applications that wish to verify that the current user did in fact pay for the application\non Google Play. However, any application (including free apps) may use the licensing service\nto initiate the download of an APK expansion file. In which case, the request that your application\nsends to the licensing service is not to check whether the user paid for the app, but to request the\nURL of the expansion files. For information about downloading expansion files for your application,\nread the guide to [APK Expansion Files](/google/play/expansion-files).\n\nTo learn more about Google Play's application licensing service and start integrating it into\nyour applications, read the following documents:\n\n**[Licensing\nOverview](/google/play/licensing/overview)**\n: Describes how the service works and what a typical licensing implementation looks\n like.\n\n**[Setting Up for\nLicensing](/google/play/licensing/setting-up)**\n: Explains how to set up your Google Play account, development environment, and\n testing environment in order to add licensing to your app.\n\n**[Adding\nServer-Side License Verification to Your App](/google/play/licensing/server-side-verification)**\n: Provides a step-by-step guide to add server-side licensing verification to your application.\n\n**[Licensing\nReference](/google/play/licensing/licensing-reference)**\n: Provides detailed information about the licensing library's classes and the service response\n codes."]]