ng-sms
v0.0.1
Published
Plguin for handling sms
Downloads
2
Readme
ng-sms
Plguin for handling sms
Install
npm install ng-sms
npx cap sync
API
getAllMessages()
sendMessage(...)
readMessage(...)
deleteMessage(...)
requestPermissions()
setDefaultApp()
getBlockedNumbers()
removeBlockedNumber(...)
addBlockedNumber(...)
isDefaultSmsApp()
setDefaultSmsApp()
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>