capacitor-ios-autofill-save-password
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Installation

npm i capacitor-ios-autofill-save-password
npx cap sync

Prerequisite

You must set up your app’s associated domains. To learn how to set up your app’s associated domains, see Supporting Associated Domains in Apple Developer document.

How to use

import { Capacitor } from '@capacitor/core';
import { SavePassword } from 'capacitor-ios-autofill-save-password';
    
login(username: string, password: string) {
    // your login logic here
        
    // call the plugin if login is successful on iOS
    if (Capacitor.getPlatform() === 'ios') {
        SavePassword.promptDialog({
            username: username,
            password: password,
        })
        .then(() => console.log('promptDialog success'))
        .catch((err) => console.error('promptDialog failure', err));
    }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    320
    • latest

Version History

Package Sidebar

Install

npm i capacitor-ios-autofill-save-password

Weekly Downloads

3,033

Version

3.0.0

License

MIT

Unpacked Size

177 kB

Total Files

62

Last publish

Collaborators

  • cuongpl