Podfile
by running the following command.
pod 'CometChatCalls', '2.1.1'
in your app Podfile.CometChatPro
framework through CocoaPods.
CometChatPro
by command
Info.plist
file to tell the user why your app needs access to the user’s photo library, Camera, Microphone. Then, App prompts the user to grant permission for access, the alert displays the justification string you provided, in the language of the locale selected on the user’s device. You can do this as follows:
CometChatPro
framework build on Swift, you have to ensure the required libraries are embedded. This can be done by setting the “Always Embed Swift Standard Libraries”
checkbox in your target’s build settings to “Yes”:
Header Search Paths
to $SDKROOT/usr/include/libxml2
.
init()
method initializes the settings required for CometChat. We suggest you call the method on app startup preferably in the didFinishLaunchingWithOptions:
method of the AppDelegate
class.
appId
with your CometChat App ID in the above code.