Skip to content

tink-ab/tink-link-android

Repository files navigation

Minimum Android API level Platform Languages

Tink Link Android

Tink Link Android

Prerequisites

  1. Set up your Tink Console account and retrieve the client ID for your app.
  2. Add an App Link (or deep link) to your app in the list of redirect URIs under App settings > API client (eg. myapp://callback).

Requirements

The minimum API level that's required to use this library is 23 (Android 6.0).

Installation

To install the SDK, add link to your app/build.gradle dependencies.

GitHub release (latest SemVer)

dependencies {
   implementation "com.tink:link:2.6.0"
}

Initialization

  1. In you AndroidManifest.xml file configure the Activity that will launch Tink Link:
<activity
    ...
    android:exported="true"
    android:launchMode="singleInstance">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data
                android:host="callback"
                android:scheme="myapp" />
    </intent-filter>
</activity>

You must configure an App Link or a deep link to handle redirects, as the end user may be taken out of your app to complete the authentication (for example, into their banking app or system browser). This link needs to match the redirect URI registered in Tink Console.

Launching the SDK

To launch the SDK in your Android app, please see the product specific documentation.

Account Check Getting started Setup and integrate SDK reference
Expense Check Getting started Setup and integrate SDK reference
Income Check Getting started Setup and integrate SDK reference
One-time payments Getting started Setup and integrate SDK reference
Risk Insights Getting started Setup and integrate SDK reference
Transactions Getting started Setup and integrate SDK reference
Report bundling - - SDK reference

Preselecting a provider

You can also optimize your integration in different ways, such as preselecting a provider. To preselect a provider, simply add your provider name in the request object, like in this example:

val dataRequest = ConnectAccountsForOneTimeAccess(
   market = "SE",
   inputProvider = "sbab-bankid",
)

Parameter inputProvider gives the option to use the data to skip the provider-selection screen and preselect the user's provider (in this example, SBAB is preselected.)

To get the list of all providers available for an authenticated user, please refer to list-providers

Example apps

SDK reference

For the full API reference, please see the Tink Link Android SDK Reference.