call-notifications
v0.0.7
Published
Desing for notifications
Downloads
38
Maintainers
Readme
call-notifications
Desing for notifications
Install
npm install call-notifications
npx cap syncAPI
echo(...)showCallNotification(...)startIncomingCall(...)endIncomingCall()checkBackgroundWebRTCProcess()checkPendingIntent()requestManageOwnCallsPermission()
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
showCallNotification(...)
showCallNotification(options: { title: string; body: string; callerName: string; }) => Promise<{ status: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------------- |
| options | { title: string; body: string; callerName: string; } |
Returns: Promise<{ status: string; }>
startIncomingCall(...)
startIncomingCall(options: { title: string; body: string; avatarUrl?: string | null; content?: string | null; }) => Promise<{ started: boolean; }>| Param | Type |
| ------------- | --------------------------------------------------------------------------------------------------- |
| options | { title: string; body: string; avatarUrl?: string | null; content?: string | null; } |
Returns: Promise<{ started: boolean; }>
endIncomingCall()
endIncomingCall() => Promise<{ ended: boolean; }>Returns: Promise<{ ended: boolean; }>
checkBackgroundWebRTCProcess()
checkBackgroundWebRTCProcess() => Promise<{ shouldAutoProcess: boolean; content?: string; offerData?: string; }>Returns: Promise<{ shouldAutoProcess: boolean; content?: string; offerData?: string; }>
checkPendingIntent()
checkPendingIntent() => Promise<{ action?: string; content?: string; }>Returns: Promise<{ action?: string; content?: string; }>
requestManageOwnCallsPermission()
requestManageOwnCallsPermission() => Promise<{ launched: boolean; message: string; }>Returns: Promise<{ launched: boolean; message: string; }>
