Deep linking

kevin. mobile SDK supports deep linking for certain banks.

Setup

Deep linking is disabled by default. In order to enable it you will need to enable it in KevinHce plugin and setup your app deep links for your callback url in your AndroidManifest.xml file.

1. Setup your callback url and enable deep linking:

class SampleApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        KevinPay.setDeepLinkingEnabled(true)
        KevinPay.setPaymentCallbackUrl("kevin://redirect.pos")
    }
}
<activity
    android:name="eu.kevin.pay.pos.payment.PaymentActivity"
    android:exported="true">
    <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="redirect.pos"
            android:scheme="kevin" />
    </intent-filter>
</activity

We recommend to use non http/https schemes for callback urls when deep linking is enabled. This is because on pre android 12 there could be multiple apps that could handle these urls like browsers and that could break the flow. You can read more about deep links here.

Last updated