# capacitor-smscode-reader

> A plugin to read and copy/paste incoming SMS code from iOS

Latest version **1.0.2** (published 2020-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install capacitor-smscode-reader
pnpm add capacitor-smscode-reader
yarn add capacitor-smscode-reader
bun add capacitor-smscode-reader
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-11-10 |
| First published | 2020-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 477.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Christophe Surbier |
| Maintainers | csurbier |
| Keywords | capacitor, plugin, native |

## Links

- npm: https://www.npmjs.com/package/capacitor-smscode-reader
- Repository: https://github.com/csurbier/capacitor-smscode-reader
- Homepage: https://github.com/csurbier/capacitor-smscode-reader#readme
- Issues: https://github.com/csurbier/capacitor-smscode-reader/issues
- npm.io page: https://npm.io/package/capacitor-smscode-reader

## Recent versions

- 1.0.2 (latest) — 2020-11-10
- 1.0.1 — 2020-11-10
- 1.0.0 — 2020-11-10

## README

# Capacitor SmsCode reader

Read incoming SMS code from iOS
  
### Installation

```sh
$ npm install capacitor-smscode-reader
```

### Use

```sh
import { Plugins } from "@capacitor/core";
const { SmsCodeReader } = Plugins;

  async openSmsCode(){
       let codeReceived = await SmsCodeReader.present({"numberOfCharacters":4})   
       console.log("Code received ",codeReceived)
   }
 }
```
### Parameters
numberOfCharacters : The lenght of the desired Pin code

### Credits:
See [KAPinField](https://github.com/kirualex/KAPinField) for managing UITextField with SMS code
See [SnapKit](https://github.com/SnapKit/SnapKit) for managing the UIViewController autolayout

---
_Source: https://npm.io/package/capacitor-smscode-reader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
