IMPORTANT |
---|
The Twilio Client SDKs for Android & iOS have been deprecated and replaced by Twilio's new Programmable Voice SDK. The Programmable Voice SDK offers many improvements over the Twilio Client SDK, including greater stability, improved backgrounding, and built-in support for push notifications for incoming calls. Get started with the new Programmable Voice SDK by checking out one of the links below: * Programmable Voice SDK for Android Quickstart * Programmable Voice SDK for iOS: Objective-C Quickstart * Programmable Voice SDK for iOS: Swift Quickstart If you're just getting started with a Twilio mobile application for voice calling, we recommend you use the Programmable Voice SDK. If you're already using the Twilio Client SDK, you should plan to upgrade to the Programmable Voice SDK as soon as you're able. |
armeabi
.ConcurrentModificationException
that was thrown when calling Twilio.shutdown()
with multiple devices
. CallSid
would be null when the Connection.onConnected
callback was received for an outgoing call. Twilio.setLogLevel()
was called before the SDK was initialized.Device.OnStartListening
would be invoked while the Device.State
was OFFLINE
.Connection
disconnect indicating that the callSID
is null. UnsatisfiedLinkError
exception at runtime for your application.Documentation on Android N Private Symbol Restrictions: here
AudioManager.MODE_IN_COMMUNICATION
mode to avoid audio distortion when using speaker mode. This occurs on newer devices running Android Marshmallow and up. You must apply this change to the AudioManager in your application. Example implementation using our Client quickstart: here
.aar
via jCenter. Support for .jar
and an unpacked binary have been deprecated. To install the Client SDK library add the following configuration in your build.gradle
file:
allprojects { repositories { jcenter() } } dependencies { compile 'com.twilio:client-android:1.2.14' }
We are deprecating support for .jar
and the unpacked binary in the eclipse
folder in the next release. They will no longer be provided after the next release. We are moving to .aar
, the standard packaging format for Android libraries and will be providing it through JCenter.
arm64-v8a
and x86_64
architectures. Device
without incoming capability. Connection.getParameters()
returning a null value for IncomingParameterCallSIDKey
targetSDKVersion
23 or higher, the SDK will now fail to initialize (and log an error) if the user has not granted runtime microphone permissions.UnsatisfiedLinkError
when running Android 6 on x86 devices/emulators due to text relocations.UnsatisfiedLinkError
when attempting to load the Twilio library on older devices.Device.OnStopListening
event when the PresenceEvent
server disconnects.Twilio.getVersion()
now returns only Major.Minor.Patch.
1.2.9
version's combined .jar
file to include extraneous symbols, unnecessarily increasing the size of applications. Twilio now packages libtwilio-native.so
for every supported architecture within twilioclient-android.jar
:
Android Studio users: Remove all libtwilio-native.so
libraries from your project and replace the existing twilioclient-android.jar
with the new combined twilioclient-android.jar
file.
libtwilio-native.so
and twilioclient-android.jar
has been provided in the eclipse
directory. Be sure to replace both the libtwilio-native.so
libraries and twilioclient-android.jar
file in your existing Eclipse project.CLIENT-2160 - Fixed an issue where ConnectionListener.onDisconnect()
was not invoked when the remote client disconnected before a Connection
had been accepted or rejected.
CLIENT-2100 - Fixed Device.connect()
crash caused by "input is not valid Modified UTF-8".
setMetrics(boolean)
added in TwilioClient
to enable/disable the collection and transmission to Twilio of call quality analytics. This feature is enabled by default.android:stopWithTask
for TwilioClientService is set to true in the AndroidManifest.xml for TwilioClientService, the service will automatically be stopped by the system if the user removes a task that is rooted in one of the application's activities.android:stopWithTask
must be set to false in the AndroidManifest.xml for TwilioClientService.android:targetSdkVersion
has been changed to 15 to leverage additional functionality from the Android Service component, android:minSdkVersion
remains 8.Initial 1.2 release.
Support for Twilio’s Global Low Latency Routing
Twilio Client for Android now takes advantage of Twilio’s Global Low Latency (GLL) routing to further improve call quality. Media for all Twilio Client calls is routed to the Twilio data center geographically nearest to the user, significantly reducing call latency.
Richer Debug Logging
We’ve made it easier to find and resolve issues in your Twilio Client Android application with detailed logging with a simple API call.
Twilio.setLogLevel(int level);
The level parameter values correspond to the levels provided by the Android SDK : Log.ASSERT
,Log.DEBUG
, Log.ERROR
, Log.INFO
, Log.VERBOSE
,Log.WARN
.
The SDK requires Android API level 9 and above. The SDK supports x86
, armeabi-v7a
, x86_64
, and arm64-v8a
architectures.
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.