VoIP calling
High-quality voice calls over internet using Twilio Voice API π
The Capacitor Twilio Voice plugin enables high-quality VoIP calling functionality in iOS and Android applications using Twilioβs Voice API. This plugin provides comprehensive call management, authentication, and audio controls for creating professional calling experiences.
VoIP calling
High-quality voice calls over internet using Twilio Voice API π
Call management
Make, accept, reject, and end calls with full lifecycle control ποΈ
Audio controls
Mute, speaker toggle, and audio routing options π€
Platform support
Native iOS and Android implementation with push notifications π±
npm install @capgo/capacitor-twilio-voicenpx cap sync
login(options: { accessToken: string })
- Authenticate with Twilio using access tokenlogout()
- End user session and clear call stateisLoggedIn()
- Check current authentication statusmakeCall(options: { to: string })
- Initiate outgoing call to specified numberacceptCall(options: { callSid: string })
- Accept incoming callrejectCall(options: { callSid: string })
- Reject incoming callendCall(options?: { callSid?: string })
- Terminate active callmuteCall(options: { muted: boolean, callSid?: string })
- Mute/unmute call audiosetSpeaker(options: { enabled: boolean })
- Toggle speaker outputThe plugin provides comprehensive event handling for:
import { TwilioVoice } from '@capgo/capacitor-twilio-voice';
// Authenticate with Twilioawait TwilioVoice.login({ accessToken: 'your-twilio-access-token' });
// Make a callawait TwilioVoice.makeCall({ to: '+1234567890' });
// Listen for call eventsTwilioVoice.addListener('callConnected', (data) => { console.log('Call connected:', data);});
Check the complete documentation for detailed setup instructions, advanced configuration, and integration examples.