> For the complete documentation index, see [llms.txt](https://chat-sdk.gitbook.io/ios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chat-sdk.gitbook.io/ios/add-pro-module-frameworks.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
