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

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

问题描述

在 WWDC 上,Apple 在演示文稿.设置相当简单,而且效果很好.如果用户在 safari 中输入密码并保存.但是,如果用户从来没有使用过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 Credential,它会显示在 Accounts &密码 >应用程序网站密码.此用户名/密码将成为自动填充选项.

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天全站免登陆