# Add pro module frameworks

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

{% embed url="<https://chat-sdk.gitbook.io/chat-sdk/commercial/module-licensing>" %}

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

{% embed url="<https://github.com/chat-sdk/chat-sdk-ios>" %}

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.&#x20;

Replace the :path parameter with the path to the `ChatSDKPro.podspec` file.&#x20;

Run:&#x20;

```
pod install
```

Import the modules to your app delegate:&#x20;

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

Enable the modules:&#x20;

```
        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:&#x20;

```
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:&#x20;

{% embed url="<https://github.com/chat-sdk/chat-sdk-ios/tree/master/DemoSwift>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chat-sdk.gitbook.io/ios/add-pro-module-frameworks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
