Deep linking
kevin. POS SDK supports deep linking for certain banks.
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.KevinHce.setDeepLinkingEnabled(context, true)
KevinHcePlugin.configure(
context,
KevinHceConfiguration.builder()
.setCallbackUrl("kevin://redirect.pos")
.build()
)
<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 modified 9mo ago