Add pro module frameworks

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:
Last modified 1yr ago