1.0.2 • Published 4 years ago

capacitor-smscode-reader v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Capacitor SmsCode reader

Read incoming SMS code from iOS

Installation

$ npm install capacitor-smscode-reader

Use

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 for managing UITextField with SMS code See SnapKit for managing the UIViewController autolayout