FinTecSystems / xs2a-android

[Client] Native Android SDK for Tink Germany XS2A API.
https://tink.com/de/fts
Other
6 stars 4 forks source link

Implement App2App redirection #21

Closed maik-mursall closed 10 months ago

maik-mursall commented 10 months ago

Implemented App2App redirection.

Integration guide

In your AndroidManifest.xml add the following IntentFilter (if not already specified) Make sure your Activity specifies the arguments exported and launchMode.

<activity
    android:exported="true" // Required
    android:launchMode="singleInstance" // Required, other values might be used as well.
    ...>
    ...
    <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="<host>"
            android:scheme="<scheme>" />
    </intent-filter>
</activity>

If done you can pass the deep link as an argument to the Wizard Composable/Fragment constructor.

// Compose
XS2AWizard(
    sessionKey = <your-session-key>,
    redirectDeepLink = "<scheme>://<host>" // Insert your deep link
)

// Fragment
XS2AWizardFragment(
    sessionKey = <your-session-key>,
    redirectDeepLink = "<scheme>://<host>" // Insert your deep link
)

Now every time the Wizard tries to redirect the user to a banking login screen, they get asked if they want to stay within the host app and use the internal WebView for the login process or get redirected to an external banking app. This dialog only appears with Banks known by us to have a Banking App.

sonatype-lift[bot] commented 10 months ago

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline