I want this alert to appear when the user logs in to my application.
I made this tutorial for this. iOS 12 Password Tools: Improving User Security and Experience
Also I have look this topic. And using this code in my LoginViewController.swift in viewDidDisappear or viewWillDisappear. But This alert does not appear at all.
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if user.id != 0 {
usernameTextField.text = nil
passwordTextField.text = nil
}
}
My entitlements file like this (Suppose that twitter.com is the website of my application):
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:twitter.com</string>
<string>webcredentials:twitter.com</string>
</array>
<key>com.apple.developer.authentication-services.autofill-credential-provider</key>
<true/>
And off course my usernameTextField content type is username and passwordTextField content type is password.
So I want to ask why this alert didn't come off.
After the autofill password feature is implemented, the save password alert will show on you push or present (full screen) to the next
ViewController
.