capacitor-smscode-reader
v1.0.2
Published
A plugin to read and copy/paste incoming SMS code from iOS
Downloads
2
Readme
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