flutter_branch_sdk v1.4.0
Configure Branch dashboard
- Register your app
- Complete the Basic integration in Branch dashboard
ps: Apple App Prefix is equivalent to Apple Team ID. You can get the information here
Follow the steps from this Configure app section only.
- Add Branch to your
AndroidManifest.xml
<manifest ...>
<!--...other tags -->
<application>
<!--...other tags -->
<!-- Launcher Activity to handle incoming Branch intents -->
<activity
android:name=".LauncherActivity"
android:launchMode="singleTask"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Branch URI Scheme -->
<intent-filter>
<data android:scheme="<ANDROID_URI_SCHEME>" android:host="open" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<!-- Branch App Links (optional) -->
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="<DEFAULT_LINK_DOMAIN>" />
<!-- example-alternate domain is required for App Links when the Journeys/Web SDK and Deepviews are used inside your website. -->
<data android:scheme="https" android:host="<ALTERNATE_LINK_DOMAIN>" />
</intent-filter>
</activity>
<!-- Branch init -->
<meta-data android:name="io.branch.sdk.BranchKey" android:value="<BRANCH_KEY>" />
<meta-data android:name="io.branch.sdk.BranchKey.test" android:value="<BRANCH_TEST_KEY>" />
<meta-data android:name="io.branch.sdk.TestMode" android:value="false" /> <!-- Set to true to use Branch_Test_Key (useful when simulating installs and/or switching between debug and production flavors) -->
</application>
</manifest>
<ANDROID_URI_SCHEME>, <DEFAULT_LINK_DOMAIN> and <ALTERNATE_LINK_DOMAIN> can be obtained from dashboard configuration. <BRANCH_KEY> can be obtained from dashboard account settings. To get the <BRANCH_TEST_KEY>, just switch the enviroment from
LIVE
toTEST
at top left corner of the dashboard.
Follow the steps from this Configure bundle identifier.
Sections included:
- Configure bundle identifier
- Configure associated domains (Can be obtained from dashboard link domain. Please add both live and test domains.)
- Configure entitlements
- Configure Info.plist
- Confirm app prefix
In Info.plist, dont add
branch_key
live and test at the same time. Use only branch_key and update as needed.
... TBD
Currently the package is clash with local_auth
which require FlutterFragmentActivity