Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

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.

### 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:
```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.

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

Expand Down