A Capacitor plugin that integrates Twilio Voice SDK for making and receiving VoIP calls within Ionic apps. This plugin enables seamless voice functionality for Android and iOS, supporting call initiation, acceptance, and termination, along with user registration via Twilio access tokens.
npm install appfueled-twilio-capacitor
npx cap sync
registerIncomingCallConnection(...)
registerOutgoingCallConnection(...)
acceptIncomingCallConnection()
rejectIncomingCallConnection()
startOutgoingCallConnection(...)
terminateOutgoingCallConnection()
registerIncomingCallConnection(options: { token: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ token: string; } |
registerOutgoingCallConnection(options: { token: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ token: string; } |
acceptIncomingCallConnection() => Promise<void>
rejectIncomingCallConnection() => Promise<void>
startOutgoingCallConnection(options: { phoneNumber: string; options: { [key: string]: any; }; }) => Promise<void>
Param | Type |
---|---|
options |
{ phoneNumber: string; options: { [key: string]: any; }; } |
terminateOutgoingCallConnection() => Promise<void>