cap-read-sms

October 21, 2021 ยท View on GitHub

Capacitor Plugin to read the user's SMS (with their permission)

Demo

Install

npm install cap-read-sms

Sync the plugin with capacitor.

npx cap sync

Supported Platforms

PlatformsSupported
Androidโœ…
iOSโŒ
Web๐Ÿคทโ€โ™‚๏ธ

API

getSMS(...)

getSMS(options: { timestamp?: string; pageSize?: number; sender?: string; }) => any
ParamType
options{ timestamp?: string; pageSize?: number; sender?: string; }

Returns: any


checkPermission()

checkPermission() => any

Returns: any


requestPermission()

requestPermission() => any

Returns: any


Interfaces

SMS_INTERFACE

PropType
addressstring
bodystring
creatorstring
datestring
date_sentstring
error_codestring
ipmsg_idstring
lockedstring
protocolstring
readstring
reply_path_presentstring
seenstring
service_centerstring
statusstring
sub_idstring
thread_idstring
typestring
_idstring