Adapty Developer Hub

Welcome to the AdaptyTeam developer hub. You'll find comprehensive guides and documentation to help you start working with Adapty as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Discussions


Learn how to set up integration with Branch

To integrate Branch go to Integrations > Branch and set credentials.

Open your Branch Account Settings and find the Branch Key field. Use it for Key test or Key live in Adapty Dashboard. In Branch, switch between Live and Tests environments for the appropriate key.

You can send an event with Proceeds (after Apple/Google cut) or just revenue. Also, you can check a box for reporting in the user's currency.

Branch Account SettingsBranch Account Settings

SDK configuration

It's very important to send Branch attribution data from the device to Adapty using Adapty.updateAttribution() SDK method. The example below shows how to do that.

To connect Branch user and Adapty user, make sure you provide your customerUserId as Branch Identity id. If you prefer not to use customerUserId in Branch, use networkUserId param in attribution method to specify the Branch user ID to attach to.

// login

// logout
// login and update attribution
    .setIdentity("YOUR_USER_ID") { referringParams, error ->
        referringParams?.let { params ->
            Adapty.updateAttribution(params, AttributionType.BRANCH)

// logout

Next, pass the attribution you receive from initializing method of Branch iOS SDK to Adapty.

Branch.getInstance().initSession(launchOptions: launchOptions) { (data, error) in
    if let data = data {
        Adapty.updateAttribution(data, source: .branch)

Updated 10 days ago


Learn how to set up integration with Branch

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.