I'm implementing autoFill to my iOS app using this tutorial "iOS 12 Password Tools: Improving User Security and Experience" everything work fine but the iOS is not prompt me with UIAlert to save the password when I login for the first time. I want to ask how I can trigger the UIAlert to prompt the user to save the password to keychain first time?
Asked
Active
Viewed 3,435 times
6
-
Have you set up associated domains in your app's capabilities and also set up a valid `apple-app-site-association` file on your server? That site you reference is useful but also see here https://developer.apple.com/documentation/security/password_autofill/ – Rudedog Apr 24 '19 at 17:01
-
I did that but still, I am not able to trigger the UI alert to save the username password for the app. I know you can use safari to add it but as round trip but not a lot of our users are that technical – NinjaDeveloper Apr 24 '19 at 22:55
-
2Hi @NinjaDeveloper, I have faced the same issue. Did you solve this? Please share your solution. – Samrat Pramanik Oct 16 '19 at 11:09
-
I followed the tutorial step by step – NinjaDeveloper Oct 17 '19 at 14:53
-
@NinjaDeveloper i am trying to implement saving my credentials to key chain and reterview via autofill. But save password pop up doesn't show up...Can u please help me here - https://stackoverflow.com/questions/61389979/save-username-and-password-in-key-chain-and-use-that-as-autofill – david Apr 23 '20 at 16:16
1 Answers
2
you have to clear the text fields and remove the view for View hierarchy.
Note: with Xcode 10 you can use save the username password in the simulator.
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
view.endEditing(true)
txtfEmail.text = nil
txtfPassword.text = nil
}

Pawan Rai
- 3,434
- 4
- 32
- 42

NinjaDeveloper
- 1,620
- 3
- 19
- 51