Plguin for handling sms
npm install ng-sms
npx cap sync
getAllMessages()
sendMessage(...)
readMessage(...)
deleteMessage(...)
requestPermissions()
setDefaultApp()
getBlockedNumbers()
removeBlockedNumber(...)
addBlockedNumber(...)
isDefaultSmsApp()
setDefaultSmsApp()
getAllMessages() => Promise<{ messages: string[]; }>
Returns: Promise<{ messages: string[]; }>
sendMessage(options: { phoneNumber: string; message: string; }) => Promise<{ success: boolean; }>
Param | Type |
---|---|
options |
{ phoneNumber: string; message: string; } |
Returns: Promise<{ success: boolean; }>
readMessage(options: { messageId: string; }) => Promise<any>
Param | Type |
---|---|
options |
{ messageId: string; } |
Returns: Promise<any>
deleteMessage(options: { messageId: string; }) => Promise<{ success: boolean; }>
Param | Type |
---|---|
options |
{ messageId: string; } |
Returns: Promise<{ success: boolean; }>
requestPermissions() => Promise<{ success: boolean; }>
Returns: Promise<{ success: boolean; }>
setDefaultApp() => Promise<{ success: boolean; }>
Returns: Promise<{ success: boolean; }>
getBlockedNumbers() => Promise<any>
Returns: Promise<any>
removeBlockedNumber(options: { phoneNumber: string; }) => Promise<{ success: boolean; }>
Param | Type |
---|---|
options |
{ phoneNumber: string; } |
Returns: Promise<{ success: boolean; }>
addBlockedNumber(options: { phoneNumber: string; }) => Promise<{ success: boolean; }>
Param | Type |
---|---|
options |
{ phoneNumber: string; } |
Returns: Promise<{ success: boolean; }>
isDefaultSmsApp() => Promise<any>
Returns: Promise<any>
setDefaultSmsApp() => Promise<any>
Returns: Promise<any>