התחלת השילוב של Smart Lock לסיסמאות באפליקציית Android
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
לפני שמתחילים לשלב את Smart Lock לסיסמאות באפליקציה, צריך להפעיל את Play Services SDK בפרויקט ב-Android Studio. בקטע השלבים הבאים מוסבר איך לשלב את Smart Lock לסיסמאות באפליקציה.
דרישות מוקדמות
כדי להשתמש ב-Smart Lock לסיסמאות ב-Android, נדרשים הדברים הבאים:
מכשיר Android תואם עם מערכת Android בגרסה 6.0 ואילך, שכולל את חנות Google Play או אמולטור עם AVD שפועל על פלטפורמת Google APIs שמבוססת על Android 4.2.2 ואילך, ועם Google Play Services בגרסה 15.0.0 ואילך.
הגרסה האחרונה של Android SDK, כולל הרכיב SDK Tools.
ערכת ה-SDK זמינה ב-Android SDK Manager ב-Android Studio.
פרויקט שהוגדר ל-compile עבור Android 6.0 (Marshmallow) ואילך.
המדריך הזה מיועד למשתמשי Android Studio, סביבת הפיתוח המומלצת.
הגדרת הפרויקט ב-Android Studio
כדי לשלב את Smart Lock לסיסמאות באפליקציה ל-Android, צריך לייבא את ספריית Google Play Services ולהפנות אליה בפרויקט ב-Android Studio. מוסיפים את השורה הבאה לקטע dependencies בקובץ build.gradle במודול האפליקציה:
[[["התוכן קל להבנה","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"]],["עדכון אחרון: 2024-12-21 (שעון UTC)."],[[["Smart Lock for Passwords is deprecated and developers should migrate to Credential Manager for enhanced security and user experience."],["Credential Manager supports passkeys, passwords, and federated identity authentication, offering a more robust and unified approach to user credentials."],["Integrating Smart Lock for Passwords previously required specific Android device and SDK prerequisites, including compatibility with Android 6.0 or newer and Google Play services."],["Developers needed to configure their Android Studio project by adding the Google Play services library dependency to their build.gradle file before using Smart Lock for Passwords."],["Retrieving and utilizing user credentials for sign-in within the app was the next step after project configuration for Smart Lock for Passwords integration."]]],[]]