Git Product home page Git Product logo

capacitor-ios-autofill-save-password's Introduction

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));
    }
}

capacitor-ios-autofill-save-password's People

Contributors

cuongpl avatar dtarnawsky avatar eliartist avatar kochax avatar nunoarruda avatar phanlaccuong-btc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

capacitor-ios-autofill-save-password's Issues

Capacitor 6

Hey do you guys any plans for updating this package to work with capacitor 6?

Get user's action on prompt dialog

Hello!!
I am currently working on an Ionic-Vue 6/ Capacitor 5 app for iOS devices.
I was wondering if there is a way to get the user's choice on the prompt dialog.
For example if there is a prompt dialog to ask the user if they want to update the password, how do I grab the user's choice(possible choices: update password/not now)?
I would like to perform some additional actions based on that choice but so far I haven't figured out a way to actually get it.
Thanks!

Plaese Help

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

IONIC 6, Capacitor 4: AX Lookup Problem, see Log:

HI,

I get the following error on calling

SavePassword.promptDialog()

2022-11-21 14:21:39.299321+0100 App[2025:923272] [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:1479 (
	0   AXRuntime                           0x00000001e7a488a0 _AXGetPortFromCache + 932
	1   AXRuntime                           0x00000001e7a4aa54 AXUIElementPerformFencedActionWithValue + 772
	2   UIKit                               0x000000024337e480 D144960F-88EF-3153-9FA1-62EF35CBC03F + 783488
	3   libdispatch.dylib                   0x0000000104d845a8 _dispatch_call_block_and_release + 32
	4   libdispatch.dylib                   0x0000000104d8605c _dispatch_client_callout + 20
	5   libdispatch.dylib                   0x0000000104d8e10c _dispatch_lane_serial_drain + 988
	6   libdispatch.dylib                   0x0000000104d8ee34 _dispatch_lane_invoke + 420
	7   libdispatch.dylib                   0x0000000104d9bcbc _dispatch_workloop_worker_thread + 740
	8   libsystem_pthread.dylib             0x000000020af13df8 _pthread_wqthread + 288
	9   libsystem_pthread.dylib             0x000000020af13b98 start_wqthread + 8

The Dialog for saving Password does not appear.

THX


Ionic:

Ionic CLI : 6.20.4 (/Users/aj/.nvm/versions/node/v16.14.2/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.3.7
@angular-devkit/build-angular : 12.2.18
@angular-devkit/schematics : 11.2.13
@angular/cli : 12.2.18
@ionic/angular-toolkit : 3.1.1

Capacitor:

Capacitor CLI : 4.5.0
@capacitor/android : 4.5.0
@capacitor/core : 4.5.0
@capacitor/ios : 4.5.0

Utility:

cordova-res : not installed globally
native-run : 1.7.1

System:

NodeJS : v16.14.2 (/Users/aj/.nvm/versions/node/v16.14.2/bin/node)
npm : 8.5.0
OS : macOS Monterey

Not implemented on ios

Is this feature still working with Ionic v6 and iOS 17+?
I installed the package and tried to store the user credentials (after successful login) but the code enters the "catch" block and returns "Error: "SavePassword" plugin is not implemented on ios" which makes not much sense since this package is for ios only. Any help would be greatly appreciated!

TS Definitions Error

Hello folks, I've just installed v1.1.4 on my project, I did everything as outlined in the doc. However, there are some issues with the package itself. My project is a Capacitor project written in Typescript.

image

I have tried to install previous versions but they kept showing some errors.

I hope my input will be helpful.

breaking change capacitor 4 to 5 only marked as a patch in the version breaks builds

Background

  • Original Setup: Projects are using capacitor-ios-autofill-save-password at version ^1.1.4, compatible with Capacitor v4.
  • Update Released: A new version 1.1.5 of capacitor-ios-autofill-save-password is released, but it introduces changes not compatible with Capacitor v4.

Issue with Semantic Versioning

  • Semantic Versioning Principle: Breaking changes should increment the major version number. The update from 1.1.4 to 1.1.5 should have been to 2.0.0 if it introduced breaking changes.
  • The Problem: The caret ^ in ^1.1.4 allows minor and patch updates. The project automatically updates to 1.1.5, causing issues due to incompatibility with Capacitor v4.

Resolution Steps

  1. The maintainers of capacitor-ios-autofill-save-password should:
    • Release a new 2.0.0 version for the breaking changes.
    • Optionally, release a patch like 1.1.6 to revert the breaking changes in 1.1.5.

CocoaPods could not find compatible versions

When runing npx cap sync ios
I get the error:
CocoaPods could not find compatible versions for pod "capacitor-ios-autofill-save-password"
...
dependency were found, but they required a higher minimum deployment target

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.