npm install @cometchat-pro/ionic-calls@2.1.2 --save
For capacitor v3 apps, npm install @cometchat-pro/ionic-calls@2.3.0--save
The calling component requires some additional configuration. Please follow the steps mentioned here../android
folder and open project-level build Gradle file and add all repository URLs in the repositories
block under the allprojects
section.
24
. You can update the minSDKVersion in the variables.gradle
file located in the android
folder.
@cometchat-pro/ionic-calls: 2.1.2
)
ios/App
folder and run pod install
this will create an App.xcworkspace
open this and run the app.
init()
method initialises the settings required for CometChat. The init()
method takes the below parameters:
setRegion()
method.AppSettings
class allows you to configure two settings:
init()
before calling any other method from CometChat. We suggest you call the init()
method on app startup, preferably in the index.js
file.
APP_ID
with your CometChat App ID and REGION
with your App Region in the above code.
Parameter | Description |
---|---|
appID | CometChat App ID |
appSetting | An object of the AppSettings class. |