Installation
DEPRECATION NOTICE
Our Cordova plugin for integrating our SDK is now deprecated. We highly recommend transitioning to our SDK using Swift Package Manager (SPM) for iOS and Gradle for Android. Please implement a custom wrapper to interface directly with the SDK methods.
For Ionic users, you can transition to using Capacitor, which supports working with native libraries seamlessly. This change will ensure better performance and more direct access to the latest SDK features.
Project Info
Cordova:
Cordova CLI : 11.0.0
Cordova Android : android 10.1.2
Cordova iOS : ios 6.2.0
Integration Example#
You have a repository available on Github with a sample project which contains an example of how to integrate our SDK.
Prerequisites#
Get started building by installing Cordova
- Node
- NPM
- Cordova CLI
To verify the installation, open a new terminal window and run:
Install the Cordova CLI with npm:
Add the SDK to your project#
Add Cordova plugin
Android#
Gradle Modification#
If your project contains the android platform, you need to add some modifications of your plugin.gradle in cordova-plugin-meetinglawyers/src/android/plugin.gradle
You have to send us an email to support@meetinglawyers.com to request the android sdk access credentials and add them to the configuration file as follows:
username password
iOS#
Podfile Modification#
If your project contains the ios platform, you need to add the following code at the bottom of the Podfile. And run pod install again on {{YOUR_PROJECT}}/platforms/ios/.
It should be something like this:
Install Cocoapods dependencies in your iOS project {{YOUR_PROJECT}}/platforms/ios/:
caution
On mac silicon computers you have to add a configuration to the CordovaLib project. After installing the dependencies open your .xcworkspace with Xcode and click on the CordovaLib project. Go to the Build Settings tab and search for the property Excluded Architectures. Add the following values:
Access permissions#
Access to camera or photo gallery always requires explicit permission from the user.
Your app must provide an explanation for its use of capture devices using the NSCameraUsageDescription and NSPhotoLibraryUsageDescription Info.plist key. iOS displays this explanation when initially asking the user for permission to attach an element in the current conversation. See: Apple Documentation
caution
Attempting to attach a gallery photo or start a camera session without an usage description will raise an exception.
Access to camera and microphone to request a Videocall.
Your app must provide an explanation for its use of capture devices using the NSCameraUsageDescription and NSMicrophoneUsageDescription Info.plist key. iOS displays this explanation when initially asking the user for permission to request a VideoCall.
Usage#
Initialize#
As soon as we receive a notification from the system telling that our application is already active, we must configure the framework by providing the client's API key configuration. You can call initialize method on deviceready event:
Next steps#
- Authenticate user: Authentication
- Show professionals list: Professionals List
- Customize UI: Customization
- Configure PUSH notifications: Firebase