Enabling Glance Voice


Before you use Glance Voice, verify that you have added the Glance Mobile SDK for iOS and Android to your application. The Glance Mobile SDK includes Glance Voice functionality. You must also add the Twilio SDK to your project, as detailed below.

Enable Glance Voice for iOS

If you had previously installed the legacy Glance Voip SDK using Cocoapods, remove the dependency on GlanceVoice via Cocoapods, and manually add the Twilio SDK dependency to your iOS project per the documentation below.

To enable Glance Voice for iOS:

  1. Download the Twilio SDK for iOS version 2.0.7.
  2. Extract the downloaded file, and find the file named TwilioVoice.framework.
  3. Copy TwilioVoice.framework into your Xcode iOS project.
  4. Add TwilioVoice.framework to Embedded Binaries within the Xcode project configuration.
  5. Verify TwilioVoice.framework is also present within Linked Frameworks and Binaries.
  6. Add the permission to use the microphone to the iOS application’s Info.plist file:
<string>Glance would like to use your microphone for customer support</string>

Enable Glance Voice for Android

To enable Glance Voice for Android:

  1. Add the Twilio Programmable Voice SDK (v2.0.2) to your project gradle file, along with the following network dependencies that are required:
implementation 'com.twilio:voice-android:2.0.2'

implementation 'com.squareup.retrofit2:retrofit:2.3.0'

implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  1. Enable microphone permissions in your application. For more information, see Twilio documentation.
  2. Add this line to your Android Manifest file:<uses-permission android:name="android.permission.RECORD_AUDIO"/>
  3. Request microphone permissions within your application: String[] permissions = {Manifest.permission.RECORD_AUDIO};requestPermissions(permissions, 1);


There are two ways you can integrate Glance Voice into an app: the Default UI or a custom implementation.

  • The Glance Default UI provides a Glance Voice implementation that will work out-of-the-box, in conjunction with Glance Screen Share for iOS and Android.
  • The custom implementation provides the ability to completely control the voice and interface experience.

By continuing to use the site, you agree to the use of cookies. Learn More