IOS general permissions: check if user selected "Do not save passwords" in Safari

We use shared credentials in our iOS app. The workflow is as follows:

  • The user is registered on our website in Safari.
  • Safari asks "Save password?"
  • User selects "Yes"
  • The user launches our application, goes to login
  • iOS shows a pop-up window in which the user can select an account.
  • We request shared credentials previously entered into Safari and log in.

This works great.

However, if in step 3 you select "Never for this site", then in step 5 he can select an entry that says: "Passwords have not been saved."

And if he does, we will get the username "Passwords not saved" and password "".

Is there a way to prevent this behavior?

eg. Can we check before we call

public func SecRequestSharedWebCredential(fqdn: CFString?, _ account: CFString?, _ completionHandler: (CFArray?, CFError?) -> Void)

method if the user refused to save his password in Safari?

+4
source share

Source: https://habr.com/ru/post/1622763/


All Articles