Table of Contents

How to set up and run Cordova/Ionic Application on iOS?

  1. Add Cordova Enablex plugin.
  2. Add iOS project. 
ionic cordova platform add ios/ cordova platform add ios 

This installs all dependency EnableX libraries through Pod.  

  1. Go to your iOS project folder and open Xcode. 
  2. Set up your certificate.  
  3. Build the app either through the command line or through Xcode. 

Back to Index

How to setup EnableX Plugin in Flutter?

To setup EnableX Plugin in Flutter, follow the steps below:

  • Add flutter plugin in pubspec.yaml.
enx_flutter_plugin: ^latest version 

  • Go to the Android folder in project-level Gradle. 
  • Add the following code within the “all project” section: 
flatDir { 
dirs 'src/main/libs' 
dirs project(':enx_flutter_plugin').file('libs') 
} 

Back to Index

How to setup EnableX Plugin and dependency Plugin in Android native Application?

Follow the steps below to setup EnableX Plugin and dependency Plugin in Android:

  1. Download the latest SDK version here. 
  1. Extract AAR file from the zipped folder and import it into the Application. 
  1. Add required dependency in app-level Gradle.  
implementation "org.webrtc:google-webrtc:1.0.32006"  
implementation "io.socket:socket.io-client:1.0.0" 

Back to Index

How to setup and run Cordova/Ionic Application on iOS?

  1. Add Cordova Enablex plugin.
  2. Add iOS project. 
ionic cordova platform add ios/ cordova platform add ios 

This installs all dependency EnableX libraries through Pod.  

  1. Go to your iOS project folder and open Xcode. 
  2. Set up your certificate.  
  3. Build the app either through the command line or through Xcode. 

Back to Index

How to set up and run Cordova/Ionic Application on Android?

To set up Cordova/Ionic application on Android, follow the steps given below after adding Cordova EnableX plugin:  

  • Step 1: Go inside the Cordova project and open Android folder. 

If Android platform is already added, remove Android and add again using the below command: 

ionic cordova platform rm android && ionic cordova platform add android 
  • Step 2: Set the Minimum SDK version and desugaring in gradle.properties file as shown below:
android.useAndroidX=true 
android.enableJetifier=true 
cdvMinSdkVersion=21 
android.enableDexingArtifactTransform.desugaring=false 

  • Step 3. Add the required libraries like webrtc and socket in the project. properties file as shown below: 
cordova.system.library.7=org.webrtc:google-webrtc:1.0.32006 
cordova.system.library.8=io.socket:socket.io-client:1.0.0 

  • Step 4: If you face “merge debug resource failed” error, then add packagingOptions in app-level build.gradle file in Android block. 
Execution failed for task ':app:mergeDebugJavaResource'. 

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade 

   > More than one file was found with OS independent path 'META-INF/DEPENDENCIES'. 
packagingOptions { 
        exclude 'META-INF/DEPENDENCIES' 
        exclude 'META-INF/LICENSE' 
        exclude 'META-INF/LICENSE.txt' 
        exclude 'META-INF/license.txt' 
        exclude 'META-INF/NOTICE' 
        exclude 'META-INF/NOTICE.txt' 
        exclude 'META-INF/notice.txt' 
        exclude 'META-INF/ASL2.0' 
        exclude("META-INF/*.kotlin_module")  
      } 


Back to Index

How to integrate Video Calling capability in an Android Application?

You can utilize EnableX Android SDK that provides all the necessary APIs to implement video calling in your Android application.  

Download EnableX Android SDK here.   


Back to Index

How to integrate Video Calling capability in an iOS Application?

You can utilize EnableX iOS SDK that provides all the necessary APIs to implement video calling in your iOS application.  

Download EnableX iOS SDK here.


Back to Index

How to integrate Video Calling capability in a Web Browser-based Application?

You can utilize EnableX Web SDK that provides all the necessary APIs to implement video calling in your web application.  

Download EnableX Web SDK here 


Back to Index

How to call the Server API using Postman?

To call Server APIs using Postman: 

  • Create a free account on EnableX.
  • Create your Project.
  • Get the APP ID and APP KEY generated against the Project. 
  • Login to Postman and go to your workspace. 
  • Create a Request. 
  • Go to Authorization and select type as Basic Auth. 
  • Add APP ID as username and APP KEY as password.
  • Enter Request URL and Request Type (GET/PUT/POST).  
  • Click on the Send button to see the response. 

Back to Index

How to switch the default Audio output to Speaker?

Earpieces are the default audio device. On receiving the Active-Talker event after joining the EnableX room, you can switch the audio output to a speaker or any other connected audio device. The Active-Talker event gets triggered whenever there is a change in the Active Talker list. Therefore, use proper flag checks to direct the audio output to speakers in an atomic manner.  

Use the following API list to switch the audio devices: 

Android:

  • Get the list of connected devices.

https://www.enablex.io/developer/video-api/client-api/android-toolkit/get-devices 

  • Switch to the desired audio media device.

https://www.enablex.io/developer/video-api/client-api/android-toolkit/switch-camera-mic-speaker/

iOS:

  • Get the list of connected devices. 

https://www.enablex.io/developer/video-api/client-api/ios-toolkit/get-devices

  • Switch to the desired audio media device.

https://www.enablex.io/developer/video-api/client-api/ios-toolkit/switch-camera-mic-speaker/ 


Back to Index

How can I quickly build a prototype using EnableX?

You can get started in four simple steps to see EnableX in action.

  1. Create a Free Account on EnableX.
  1. After signing up, log in to the EnableX Portal and create your Project. 
  1. You will get Project Credentials (APP-ID and APP-KEY) generated against your project. You require these credentials to access EnableX API. 
  1. You can download a sample application of your choice and try it out to see EnableX in action. Refer to the list of sample applications on GitHub. Follow the instructions as given in the respective ReadMe docs in the sample application. 

Back to Index