我已经在iOS Autofill凭证扩展方面工作了很长时间。我查看了很多iOS文章和视频,但是我无法在快速输入栏中显示凭据,重置事项已成功集成。有人能给我快速帮助吗?
使用苹果分享的以下视频和网址: https://developer.apple.com/videos/play/wwdc2018/721 https://developer.apple.com/documentation/authenticationservices
我正在使用下面的代码将凭据保存到特定域的钥匙串中。
使用苹果分享的以下视频和网址: https://developer.apple.com/videos/play/wwdc2018/721 https://developer.apple.com/documentation/authenticationservices
我正在使用下面的代码将凭据保存到特定域的钥匙串中。
let keychain = Keychain(server: "instagram.com", protocolType: .https, authenticationType: .htmlForm)
keychain["emailAddress"] = "Password"
使用以下代码保存域名:
func savedomain(domain: String, account: String, password: String, completion: ((Bool, SharedWebCredentialsManagerError?) -> Void)? = nil) {
SecAddSharedWebCredential(domain as CFString, account as CFString, password as CFString?) { error in
guard let error = error else {
completion?(true, nil)
return
}
let errorDescription = CFErrorCopyDescription(error) as String
let saveFailedError = SharedWebCredentialsManagerError.saveFailed(errorDescription)
completion?(false, saveFailedError)
}
}
我创建了一个自动填充扩展并获取了保存的凭据,但无法在Safari的快速输入栏中显示Instagram.com的凭据。