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
Natif iOS and Android implementation with Pousser notifications 📱
npm install @capgo/capacitor-twilio-voicenpx cap synclogin(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);});Vérifier the Terminé Documentation for detailed Configuration instructions, advanced Configuration, and integration Exemples.