Skip to content
9 changes: 8 additions & 1 deletion docs/main/guides/autofill-credentials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,19 @@ Apple provides a [tool](https://search.developer.apple.com/appsearch-validation-

Branch provide a [tool](https://branch.io/resources/aasa-validator) that validates the link, content-type and JSON structure. It will show a false positive on an invalid JSON schema however.
Comment thread
riderx marked this conversation as resolved.
Outdated

Capgo provide a [aasa-tester](https://aasa-tester.capgo.app/) made for Capacitor that validates the link, content-type and JSON structure. It will help you to debug any Site associaltion issues.
Comment thread
riderx marked this conversation as resolved.
Outdated
Comment thread
riderx marked this conversation as resolved.
Outdated

### Save Credentials

To control the saving of username and password credentials with the native iOS Password Manager you will need to use the [capacitor-ios-autofill-save-password](https://github.com/cuongpl/capacitor-ios-autofill-save-password) plugin:
Comment thread
riderx marked this conversation as resolved.
Outdated
```bash
npm install capacitor-ios-autofill-save-password
npm install @capgo/capacitor-autofill-save-password
```

Your code will need to save credentials after successful login if it targets iOS (other platforms do not require this):
```typescript
import { SavePassword } from '@capgo/capacitor-autofill-save-password';

if (Capacitor.getPlatform() === 'ios') {
await SavePassword.promptDialog({
username: '[the username that was entered]',
Expand Down Expand Up @@ -181,6 +185,9 @@ Follow the [Android Deep Links Guide](deep-links#android-configuration) to creat
}
```

Or with `@capgo/capacitor-autofill-save-password` to support Read and write passwords in keychain.
Follow this [link](https://capgo.app/docs/plugins/autofill-save-password/) to setup Android.
Comment thread
riderx marked this conversation as resolved.
Outdated

## Configuration for Web
Follow the [Deep Links Guide](deep-links#website-configuration) if you are targeting the web.

Expand Down
Loading