Skip to content

Prompt to display dialog for saving password to keychain for iOS webview app.

Notifications You must be signed in to change notification settings

kochax/capacitor-ios-autofill-save-password

 
 

Repository files navigation

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 { Plugins } from '@capacitor/core';
const { SavePassword } = Plugins;
    
login (username, password) {
    // your login logic here
        
    // call the plugin if login is successful on iOS
    if (this.platform.is('ios')) {
        SavePassword.promptDialog({
        username: username,
        password: password
        });
    }
}

About

Prompt to display dialog for saving password to keychain for iOS webview app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 49.8%
  • Ruby 19.3%
  • Objective-C 13.3%
  • JavaScript 9.5%
  • TypeScript 8.1%