ng-sms
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

ng-sms

Plguin for handling sms

Install

npm install ng-sms
npx cap sync

API

getAllMessages()

getAllMessages() => Promise<{ messages: string[]; }>

Returns: Promise<{ messages: string[]; }>


sendMessage(...)

sendMessage(options: { phoneNumber: string; message: string; }) => Promise<{ success: boolean; }>
Param Type
options { phoneNumber: string; message: string; }

Returns: Promise<{ success: boolean; }>


readMessage(...)

readMessage(options: { messageId: string; }) => Promise<any>
Param Type
options { messageId: string; }

Returns: Promise<any>


deleteMessage(...)

deleteMessage(options: { messageId: string; }) => Promise<{ success: boolean; }>
Param Type
options { messageId: string; }

Returns: Promise<{ success: boolean; }>


requestPermissions()

requestPermissions() => Promise<{ success: boolean; }>

Returns: Promise<{ success: boolean; }>


setDefaultApp()

setDefaultApp() => Promise<{ success: boolean; }>

Returns: Promise<{ success: boolean; }>


getBlockedNumbers()

getBlockedNumbers() => Promise<any>

Returns: Promise<any>


removeBlockedNumber(...)

removeBlockedNumber(options: { phoneNumber: string; }) => Promise<{ success: boolean; }>
Param Type
options { phoneNumber: string; }

Returns: Promise<{ success: boolean; }>


addBlockedNumber(...)

addBlockedNumber(options: { phoneNumber: string; }) => Promise<{ success: boolean; }>
Param Type
options { phoneNumber: string; }

Returns: Promise<{ success: boolean; }>


isDefaultSmsApp()

isDefaultSmsApp() => Promise<any>

Returns: Promise<any>


setDefaultSmsApp()

setDefaultSmsApp() => Promise<any>

Returns: Promise<any>


Readme

Keywords

Package Sidebar

Install

npm i ng-sms

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

57.4 kB

Total Files

28

Last publish

Collaborators

  • ajayshinde