npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@broadly/cordova-plugin-twiliovoicesdk

v6.0.8

Published

Use the Twilio Voice SDK for iOS or Android with Cordova/PhoneGap. Successor to Twilio Client Plugin

Downloads

22

Readme

npm version

Cordova Plugin for Twilio Voice

Cordova Plugin for Twilio Programmable Voice SDK

Looking for Maintainer

This project does not get as much of my attention as it deserves, as I'm not a user of the plugin. I would be happy to put a link here to an active fork or fork(s) of this project, or to retire it if need be.

Roadmap (October 30, 2022)

Here is what is on the road map as of the current date for this project:

  • Bump supported Twilio iOS Voice SDK to 6.4.2
  • Bump supported Twilio Android Voice SDK to 6.1.2
  • Bump supported Cordova version to 11.0
  • Refactor iOS and Android plugin code - both were based on Twilio sample code, which probably isn't the best base for this project
  • Add test coverage for JS, Obj-C, and Java - this will be an interesting project, as the code in this plugin largely acts as an integration layer

Changelog

  • 6.0.3 - October 31, 2021 - Support all parameters being passed to the Android plugin, not just "To"
  • 6.0.2 - October 2, 2021 - Added error code to error message for debugging in Android
  • 6.0.1 - October 1, 2021 - Updated to support Twilio Voice SDK 5.8.0 for Android
  • 6.0.0 - April 18, 2021 - Updated to support Twilio Voice SDK 6.2.2 for iOS

Using the plugin

As a very first step to using this plugin, you need to make sure that you can actually use the Twilio Voice SDK for Android or iOS with your project. You also need to have a working Cordova or Capacitor app to add this plugin.

Changed Package Name to cordova-plugin-twiliovoicesdk

Note - as of August 21, 2018, this NPM package name will match the Cordova Plugin id.

Requires AndroidX (Android only)

Note - as of January 15, 2021, this requires AndroidX support, as well as Cordova Android 9 or above. You also need to set up Firebase Cloud Messaging (FCM), and include a google-services.json file in your platforms/android/app directory

In your Cordova project's config.xml, add these options:

<preference name="AndroidXEnabled" value="true" />
<preference name="GradlePluginGoogleServicesEnabled" value="true"/>

If you don't add that, you will see this error:

This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.

Android X Required

If you use any Android plugins that do not support AndroidX, please add this plugin to your project:

https://github.com/dpa99c/cordova-plugin-androidx-adapter

Example Application

Looking for a simple Cordova/PhoneGap starter application to show how this is used? https://github.com/jefflinwood/twilio-voice-phonegap-example

Twilio Voice

This plugin is a wrapper for the Twilio Voice SDK for iOS and Android: https://www.twilio.com/docs/api/voice-sdk

Android SDK example: https://github.com/twilio/voice-quickstart-android/

If you are using the Twilio Client SDK for iOS and Android, see the earlier Twilio Client Plugin (now deprecated and obsolete) https://github.com/jefflinwood/twilio_client_phonegap

Available on NPM

cordova plugin add cordova-plugin-twiliovoicesdk

The NPM Page for this plugin: https://www.npmjs.com/package/cordova-plugin-twiliovoicesdk

Preferences

There are three preferences you will need to configure:

Preference | Example | Description ---------- | ------- | ----------- INCOMING_CALL_APP_NAME | PhoneApp | Users will get a notification that they have an inbound call (either a standard Push notification, or a CallKit screen) - this name is shown to the users. ENABLE_CALL_KIT | true | This plugin has optional CallKit support for iOS 10 and above. ENABLE_CALL_KIT should be "true" or "false" MASK_INCOMING_PHONE_NUMBER | false | This plugin has optional ability to mask the incoming phone number. MASK_INCOMING_PHONE_NUMBER should be "true" or "false" DEBUG_TWILIO | false | Optionally enable twilio library debugging. DEBUG_TWILIO should be "true" or "false"