在“帐户和帐户"下的首选项中保存密码.密码" [英] Save password in preferences under "Accounts & Passwords"

查看:117
本文介绍了在“帐户和帐户"下的首选项中保存密码.密码"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple在WWDC上以演示文稿.设置非常简单,并且效果很好.如果用户在野生动物园中输入密码并保存.但是,如果用户从未使用过Safari,而仅使用过该应用程序,则当前用户仍然必须每次都键入密码.

At WWDC Apple presented the AutoFill feature for iOS Apps in a presentation. It is fairly simple to set up and works really well. If the user entered a password in safari and saved it. However, if the user never used Safari, but only the app, currently the user still has to type out the password every time.

我已经将密码存储在钥匙串中.不幸的是,这并没有将密码放在"帐户和密码>应用和网站密码"下面的设置中.有什么方法可以将用户在应用程序中输入的密码存储到此设置页面,以便用户下次登录时得到建议?

I am already storing the password in the keychain. Unfortunately this does not put the password in the settings below "Accounts & Passwords > App & Website Passwords". Is there any way, how I can store the password the user entered into my app to this settings page, so that the user gets a suggestion for it, when logging in the next time?

推荐答案

您可以在应用程序中添加Safari凭据,该凭据将显示在Accounts & Passwords > App & Website Passwords中.该用户名/密码将成为自动填充选项.

You can add a Safari Credential in your app and it will show up in Accounts & Passwords > App & Website Passwords. This username/password will then be an autofill option.

请参阅 SecAddSharedWebCredential 上的文档.

这篇关于在“帐户和帐户"下的首选项中保存密码.密码"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆