How to get Branch io key and domain.

    • Go to branch.io website then perform Sign up and Sign In.

    • After creating branch.io account go to Dashboard

    branch io - 1
    • Click Create New App

    branch io - 1
    branch io - 2
    • Enter your App name and then Create your app

    branch io - 2
    • Android platform integration in branch.io dashboard :

    1. Click on configuration.

    2. branch io - 1
    3. On the same page, confirm the "I have an Android App" and "Enable App Links" options are both selected.

    4. branch io - 1
    5. Android URI Scheme: yourappname://

    6. branch io - 1
    7. Select Custom URL and paste your applicationId package name path:- android->app->build.gradle file

    8. branch io - 1
      branch io - 1
    9. SHA256 cert Fingerprints

      • Go to the project folder in the terminal.

      • Mac:

        keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
      • Windows:

        keytool -list -v -keystore "\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
      • if you're using PowerShell or a Unix-based system like mac.

      • Go to the terminal view and paste: gradlew signingReport or ./gradlew signingReport

      • branch io - 3
      • Press enter and scroll to "Variant: debug" to get the SHA-256 key

      • branch io - 3
    • Note : If you still can't find SHA-256 key, Please follow the Link and complete the setup as asked.

    • branch io - 1
    • Then save button

    • Configuration App

    • To configure your app to use the Branch Android SDK, you will need to update your AndroidManifest.xml file.

    • To populate the file with the correct values, you will need to gather your:

    • Android URI scheme

    • The app.link domain associated with your app

    • The -alternate.app.link domain associated with your app

    • You can find these values for your app in your Branch Dashboard App Settings and Link Settings.

    • branch io - 3
      branch io - 3
    • Use the sample code below for your AndroidManifest.xml file, making sure to replace every value that has a REPLACE comment associated with it:

    • branch io - 3
    • For iOS

    1. Click on configuration.

    2. branch io - 1
    3. On the same page, confirm the "I have an iOS App" option is selected.

    4. branch io - 3
    5. iOS URI scheme: yourappname://

    6. branch io - 3
    7. Retrieve your Team ID from your Apple Developer Account.

    8. branch io - 3
    9. Go back to the Configuration page and use your Team ID as the value for your Apple App Prefix in the Branch Dashboard.

    10. branch io - 3
    11. Find the bundle identifier for the relevant target associated with your project in Xcode, under the "Signing & Capabilities" tab.

    12. branch io - 3
    13. Return to the Configuration page of the branch dashboard, and use the "Add New Bundle ID" button to add your Bundle ID.

    14. branch io - 3
    15. Then save button

    16. In your branch dashboard, navigate to the "Link Domain" section of the Configuration page.

    • Configuration App

    • Return to the "Signing & Capabilities" tab in Xcode, and add the domains from your Branch Dashboard to your project's target.

      • Use applinks:subdomain.app.link for the format.

      • The -alternate flag is required to ensure proper functioning of Universal Links and Deepviews for users that do not have your app installed.

      • The .test flag is required if you need to use a test key.

      • branch io - 3
    • Branch requires certain key/value pairs to exist in your project's info.plist file. These include:

      • The branch_universal_link_domains key, which refers to your associated domains.

      • The branch_key key, where you add your live key.

      • branch io - 3
      • The CFBundleURLSchemes key, where you add values for your URL Schemes

      • branch io - 3
    • Change my app domain

    • Choose a link domain which will be used for all your links:

      • Use My Own Domain

      • If you choose to use your own domain, enter your domain. The link domain is the website that hosts your deep links, it is not a deep link.

      • Change My app.link Subdomain

      • Here is where you can see and copy the current subdomain for your link domain. If you want to change it, click Change my app.link Subdomain.

      • Enter in a new subdomain.

      • Click Get when you're done.

      • If you have already changed your subdomain once, you will not have the option to change it again. If you need to make changes to the subdomain contact our Support team .

      branch io - 4
      branch io - 5
      branch io - 5
      • Please note: if you use a custom link domain , you will need to include your old link domain, your -alternate link domain, and your new link domain in your project

    • How to get Branch key

      • On the Account Settings page, in the General tab navigate to the Branch Key and Branch Secret section.

      • And Copy your Branch key

      branch io - 4

Want to talk with us?