Android platform integration in branch.io dashboard :
Click on configuration.
On the same page, confirm the "I have an Android App" and "Enable App Links" options are both selected.
Android URI Scheme: yourappname://
Select Custom URL and paste your applicationId package name path:- android->app->build.gradle file
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
Press enter and scroll to "Variant: debug" to get the SHA-256 key
Note : If you still can't find SHA-256 key, Please follow the Link and complete the setup as asked.
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.
Use the sample code below for your AndroidManifest.xml file, making sure to replace every value that has a REPLACE comment associated with it:
For iOS
Click on configuration.
On the same page, confirm the "I have an iOS App" option is selected.
iOS URI scheme: yourappname://
Retrieve your Team ID from your Apple Developer Account.
Go back to the Configuration page and use your Team ID as the value for your Apple App Prefix in the Branch Dashboard.
Find the bundle identifier for the relevant target associated with your project in Xcode, under the "Signing & Capabilities" tab.
Return to the Configuration page of the branch dashboard, and use the "Add New Bundle ID" button to add your Bundle ID.
Then save button
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 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.
The CFBundleURLSchemes key, where you add values for your URL Schemes
Change my app domain
On the Configuration page, in the General tab, navigate to the Link Domain section.
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 .
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