Skip to content

Most visited

Recently visited

navigation

使用 Smart Lock(密码专用)保存和检索登录凭据

借助 Smart Lock(密码专用),您可以使用任何帐号顺畅地登录到 Android 上的应用以及在 Chrome 中打开的网站。 用户可以使用其保存的凭据在任何设备上自动登录到应用。

这样做的好处

通过集成 Smart Lock(密码专用),您可以尽量避免用户因无法登录而改为进行其他活动的情况,从而降低错失转化机会的几率。 用户将密码保存到 Smart Lock 中以后,日后使用自己的任何 Chrome 和 Android 设备时,就无需再次输入凭据。

主要功能

  • Firebase 身份验证功能相辅相成。 Smart Lock 可让用户在任何设备上使用任何帐号时都能享有自动登录体验。
  • 为您的网站和应用现有的登录系统提供辅助,而非取代原有的登录系统。 Smart Lock 的作用只是将用户名和密码传递给应用,这意味着您无需对任何现有的后端身份管理和用户身份机制进行任何更改。
  • 用户既可以保存包含“用户名和密码”的凭据,也可以保存联合身份提供商凭据。

示例

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.