Swift Autofill Password not working: "failed to approve"

224 views Asked by At

I want to implement Password Autofill but I do not get it working. It fails with the following error:

Error Domain=NSOSStatusErrorDomain Code=-25293 ""beezleapp.com" failed to approve "N4EV3W64CV.com.beezleapp.beezle"" UserInfo={numberOfErrorsDeep=0, NSDescription="beezleapp.com" failed to approve "N4EV3W64CV.com.beezleapp.beezle"}

For this code:

SecAddSharedWebCredential(
       "beezleapp.com" as CFString,
        emailPw.email as CFString,
        pw
    )

This are my associated domains:

enter image description here

Bundle identifier:

enter image description here

Team ID:

enter image description here

This is my AASA file:

{
"applinks": {
    "details": [
      {
        "appID": "N4EV3W64CV.com.beezleapp.beezle",
        "paths": ["*"]
      }
    ]
  },
   "webcredentials":{
      "apps":[
         "N4EV3W64CV.com.beezleapp.beezle"
      ]
   },
   "appclips":{

   }
}

It is available at:

$ curl https://beezleapp.com/.well-known/apple-app-site-association
$ curl https://beezleapp.com/apple-app-site-association

What am I missing?

1

There are 1 answers

0
J. Doe On

Turned out it was a DNS caching issue on the device side. I turned on Associated Domains Development in Settings -> Developer. Then it worked instantly.