How to configure or implement applinks for keycloak to redirect user from email of keycloak to mobile app

We want to use Android and iOS App Links with Keycloak so that pages opened for an email link (e.g. forgot/reset password) will open with our app if it is installed, else in the browser as normal.
This would require Keycloak to serve .well-known/apple-app-site-association and .well-known/assetlinks.json (see App Links in Xamarin Forms - Rendy's Website for examples). Is there a way we can configure or extend Keycloak to do this?

Hello
Did you find something or did you create an SPI for that?