📱
iOS
  • Chat SDK iOS
  • API
    • Customizing the User Interface
    • iOS Integration (Español)
    • Events
  • Message Customization
  • Video Call using Sinch
  • Add pro module frameworks
Powered by GitBook
On this page

Was this helpful?

Add pro module frameworks

PreviousVideo Call using Sinch

Last updated 3 years ago

Was this helpful?

To add the pro module frameworks, you need to sponsor the project on either Patreon or Github Sponsors. See:

Once that's done, download ChatSDKPro and ChatSDKPro.podspec from:

Add them to your project. Then add the modules to your Podfile:

  pod "ChatSDKPro/ContactBook", :path => "../"
  pod "ChatSDKPro/Encryption", :path => "../"
  pod "ChatSDKPro/Firebase", :path => "../"
  pod "ChatSDKPro/FirebaseNearbyUsers", :path => "../"
  pod "ChatSDKPro/Message", :path => "../"
  pod "ChatSDKPro/ChatK!t", :path => "../"

Just add modules you are licensed to use.

Replace the :path parameter with the path to the ChatSDKPro.podspec file.

Run:

pod install

Import the modules to your app delegate:

import FirebaseModules
import ContactBookModule
import MessageModules
import FirebaseNearbyUsersModule
import EncryptionModule
import ChatSDKPro

Enable the modules:

        var modules = [
            FirebaseNetworkAdapterModule.shared(),
            FirebasePushModule.shared(),
            FirebaseUploadModule.shared(),
            //...

            BBlockingModule.init(),
            BReadReceiptsModule.init(),
            BTypingIndicatorModule.init(),
            BLastOnlineModule.init(),
            StickerMessageModule.shared(),
            BVideoMessageModule.init(),
            FileMessageModule.init(),
            BAudioMessageModule.init(),
            BContactBookModule.init(),
            EncryptionModule.init(),
            //...
        ]

Activate Chat SDK and add your licensing identifier:

BChatSDK.initialize(config, app: application, options: launchOptions, modules: modules, networkAdapter: nil, interfaceAdapter: nil)

BChatSDK.activateLicense(withGithub: "your-github-id")
// or
BChatSDK.activateLicense(withPatreon: "your-patreon-id")
// or
BChatSDK.activateLicense(withEmail: "your-email")

See full example here:

Module LicensingChat SDK
GitHub - chat-sdk/chat-sdk-ios: Chat SDK iOS - Open Source Mobile MessengerGitHub
chat-sdk-ios/DemoSwift at master · chat-sdk/chat-sdk-iosGitHub
Logo
Logo
Logo