cuongpl / capacitor-ios-autofill-save-password

Prompt to display dialog for saving password to keychain for iOS webview app.
8 stars 10 forks source link

Plaese Help #4

Open alb99 opened 2 years ago

alb99 commented 2 years ago

I have a Ionc Angular Capacitor App.

After the call, I get a message in xcode.

"being called from a background thread. Performing any operation from a background thread on UIView or a subclass is not supported and may result in unexpected and insidious behavior."

A dialogue is not displayed.

What am I doing wrong? Please Help

hardikdabhi commented 2 years ago

I was facing same issue, and turned out for me issue was typo in added domain name "associated-domains". Issue most likely is related to Supporting Associated Domains. See link below, it has more detailed steps and might help further. https://stackoverflow.com/questions/58530929/how-do-i-turn-on-the-webview-autocomplete-for-an-login-form-in-ionics-capacitor

iOlivier commented 2 years ago

@alb99 Were you able to find a solution? I'm facing the same issue with my Ionic Angular Capacitor app, and my associated domains file should be correct.

My apple-app-site-association file looks like this:

{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appID": "XXXXXXX.com.company.app",
        "paths": [
          "*"
        ]
      }
    ]
  },
  "webcredentials": {
    "apps": [
      "XXXXXXX.com.company.app"
    ]
  }
}
iOlivier commented 2 years ago

Update: I was able to get it working. It had nothing to do with the associated domains file for me. The problem was that I already had the username and password stored in my keychain. It will only show the popup if it's not yet stored in the keychain, or if the password differs from the one already saved in the keychain.