0.0.1 • Published 2 years ago

@jonz94/capacitor-read-sms v0.0.1

Weekly downloads
-
License
Unlicense
Repository
github
Last release
2 years ago

@jonz94/capacitor-read-sms

Capacitor Plugin to read SMS

Install

npm install @jonz94/capacitor-read-sms
npx cap sync

API

getSMS(...)

getSMS(options: { timestamp?: string; pageSize?: number; sender?: string; }) => Promise<{ value: SMS[]; }>
ParamType
options{ timestamp?: string; pageSize?: number; sender?: string; }

Returns: Promise<{ value: SMS[]; }>


checkPermission()

checkPermission() => Promise<{ value: PERMISSION; }>

Returns: Promise<{ value: PERMISSION; }>


requestPermission()

requestPermission() => Promise<{ value: PERMISSION; }>

Returns: Promise<{ value: PERMISSION; }>


Interfaces

SMS

PropType
_idstring
thread_idstring
addressstring
datestring
date_sentstring
protocolstring
readstring
statusstring
typestring
reply_path_presentstring
bodystring
error_codestring
creatorstring
seenstring
prioritystring
sequence_timestring
server_timestring

Type Aliases

PERMISSION

'granted' | 'denied'